Old 05/18/2010, 06:16 AM     Thread Author   #1 (permalink)
Homebrew Developer
 
boucles0's Avatar
 
Join Date: Jul 2009
Location: FRANCE
Posts: 805
Likes: 24
Thanks: 174
Thanked 212 Times in 115 Posts

Default using Facebook in my app ...?

Hello !

Is there a way in an app to publish a text in user's facebook account ?

The user just tap a button, and the app open facebook app with a text in profile update...

Thanks for help !
__________________
webOS developer @ScienceApps - webOSFrance Editor

Starter - Newspaper Creator - Lithium Benchmark - Lithium Messenger - Multiple App launcher - webOSnation News - Color My Dreams - Lightning Impact - Vision
boucles0 is offline   Reply With Quote
Old 05/18/2010, 07:05 AM   #2 (permalink)
Member
 
srath16's Avatar
 
Join Date: Oct 2009
Posts: 90
Likes: 0
Thanks: 4
Thanked 10 Times in 9 Posts

Default

you can use, on the handleFunction of your button tap, the service call to the application manager to open the facebook app. You'd have to do some digging within the facebook app as well to see whether or not that's even supported. Hope this helps.
srath16 is offline   Reply With Quote
Thanked By: boucles0
Old 05/18/2010, 07:49 AM     Thread Author   #3 (permalink)
Homebrew Developer
 
boucles0's Avatar
 
Join Date: Jul 2009
Location: FRANCE
Posts: 805
Likes: 24
Thanks: 174
Thanked 212 Times in 115 Posts

Default

Thanks ! I know how to launch facebook app, but I can't find api to send text inside the facebook app.
__________________
webOS developer @ScienceApps - webOSFrance Editor

Starter - Newspaper Creator - Lithium Benchmark - Lithium Messenger - Multiple App launcher - webOSnation News - Color My Dreams - Lightning Impact - Vision
boucles0 is offline   Reply With Quote
Old 05/18/2010, 08:00 AM   #4 (permalink)
Member
 
pimpmypre's Avatar
 
Join Date: Jun 2009
Posts: 428
Likes: 0
Thanks: 23
Thanked 150 Times in 63 Posts

Default

Facebook has an API you can use to perform a lot of user functions. I've only skimmed it, but it would probably be better to use than opening the facebook app.

Facebook Developers
__________________
WOG Dev - WebOS Group http://www.WebOSGroup.com
PMP Dev - http://www.PimpMyPre.com
Apps: WOG O.S.K., WOG Card Keeper, WOG Glowstick, WOG Kid Protect, PreLoad, PimpMySounds
pimpmypre is offline   Reply With Quote
Thanked By: boucles0
Old 05/18/2010, 10:29 AM   #5 (permalink)
Member
 
Blubble's Avatar
 
Join Date: Jun 2009
Location: Silicon Valley, California
Posts: 1,025
Likes: 0
Thanks: 37
Thanked 444 Times in 161 Posts

Default

You should look into the graph API. It gives a quick and easy way to read and publish data to a Facebook account. You'll need to learn how to handle Oauth2 authentication.

http://developers.facebook.com/docs/reference/api/

http://developers.facebook.com/docs/authentication/

http://graph.facebook.com

There is a Javascript SDK. I don't think that will work directly with a Mojo app since it requires browser plugins. However, looking through it could give you some clues as to how things work.

You should also check out the Facebook dev forum.

Facebook Platform Developer Forum
__________________
.

NaNplayer Preview Videos
: http://www.youtube.com/BlubbleApps
NaNplayer Preview Screenshots: http://www.flickr.com/nanapps/
Twitter: http://twitter.com/NaNplayer
Facebook: http://www.facebook.com/pages/NaNplayer/408576839837
Blubble is offline   Reply With Quote
Thanked By: boucles0
Old 05/18/2010, 12:26 PM     Thread Author   #6 (permalink)
Homebrew Developer
 
boucles0's Avatar
 
Join Date: Jul 2009
Location: FRANCE
Posts: 805
Likes: 24
Thanks: 174
Thanked 212 Times in 115 Posts

Default

thank for your Blubble, pimpmypre !
__________________
webOS developer @ScienceApps - webOSFrance Editor

Starter - Newspaper Creator - Lithium Benchmark - Lithium Messenger - Multiple App launcher - webOSnation News - Color My Dreams - Lightning Impact - Vision
boucles0 is offline   Reply With Quote
Old 05/18/2010, 12:56 PM   #7 (permalink)
Member
 
Blubble's Avatar
 
Join Date: Jun 2009
Location: Silicon Valley, California
Posts: 1,025
Likes: 0
Thanks: 37
Thanked 444 Times in 161 Posts

Default

This might be of interest to you if you want a simple way to post status updates to Facebook.

Facebook for webOS: Seed Status - incaseofstairs
__________________
.

NaNplayer Preview Videos
: http://www.youtube.com/BlubbleApps
NaNplayer Preview Screenshots: http://www.flickr.com/nanapps/
Twitter: http://twitter.com/NaNplayer
Facebook: http://www.facebook.com/pages/NaNplayer/408576839837
Blubble is offline   Reply With Quote
Thanked By: boucles0
Old 05/19/2010, 10:02 AM     Thread Author   #8 (permalink)
Homebrew Developer
 
boucles0's Avatar
 
Join Date: Jul 2009
Location: FRANCE
Posts: 805
Likes: 24
Thanks: 174
Thanked 212 Times in 115 Posts

Default

GREAT 10000000000000000000000000 THANKS FOR YOU Blubble !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
__________________
webOS developer @ScienceApps - webOSFrance Editor

Starter - Newspaper Creator - Lithium Benchmark - Lithium Messenger - Multiple App launcher - webOSnation News - Color My Dreams - Lightning Impact - Vision
boucles0 is offline   Reply With Quote
Old 05/19/2010, 10:02 AM     Thread Author   #9 (permalink)
Homebrew Developer
 
boucles0's Avatar
 
Join Date: Jul 2009
Location: FRANCE
Posts: 805
Likes: 24
Thanks: 174
Thanked 212 Times in 115 Posts

Default

thanks to facebook 1.2.1 version here's how to publish a text a the facebook wall.
Quote:

this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'launch',
parameters: {
id: "com.palm.app.facebook",
params: { status: "hello!" }
},
onFailure: function(response) {
Mojo.Log.error("Seed Status Failure: %j", response.errorText);
}
});
__________________
webOS developer @ScienceApps - webOSFrance Editor

Starter - Newspaper Creator - Lithium Benchmark - Lithium Messenger - Multiple App launcher - webOSnation News - Color My Dreams - Lightning Impact - Vision

Last edited by boucles0; 05/19/2010 at 10:27 AM.
boucles0 is offline   Reply With Quote
Old 05/19/2010, 12:31 PM     Thread Author   #10 (permalink)
Homebrew Developer
 
boucles0's Avatar
 
Join Date: Jul 2009
Location: FRANCE
Posts: 805
Likes: 24
Thanks: 174
Thanked 212 Times in 115 Posts

Default

I've finish with ! it really works great ! awesome !
__________________
webOS developer @ScienceApps - webOSFrance Editor

Starter - Newspaper Creator - Lithium Benchmark - Lithium Messenger - Multiple App launcher - webOSnation News - Color My Dreams - Lightning Impact - Vision
boucles0 is offline   Reply With Quote

 

Content Relevant URLs by vBSEO 3.6.0