[Resolved] Facebook simple post

Hello,

How can i make a simple post on my facebook account through my corona application? [import]uid: 185094 topic_id: 32310 reply_id: 332310[/import]

take a look at facebook dialogs
https://developers.facebook.com/docs/reference/dialogs/

cheers [import]uid: 70635 topic_id: 32310 reply_id: 128611[/import]

do i need a network.request url??

i cant see how this reference can help me… this reference is for web development… i am using lua-corona for mobile development…

please can you be more specific how the facebook docs can be useful in my project?

[import]uid: 185094 topic_id: 32310 reply_id: 128612[/import]

you had the right idea.
generate a link like this

 local appID = "xxxxxxxxxxxxxxx"  
 local redirectUri = "http://www.canupa.com/"  
 local fbLink = "http://www.canupa.com/products/"  
 local fbPic = "http://canupa.com/images/stories/canupa\_logo\_tm.jpg"  
 local fbName = "AppName"  
  
 -- do a native.showWebPopup() and open the generated link.  
 native.showWebPopup(20, 20, display.contentWidth - 40, display.contentHeight - 160, "http://www.facebook.com/dialog/feed?display=touch&app\_id="..appID.."&redirect\_uri="..redirectUri.."&link="..fbLink.."&picture="..fbPic.."&name="..fbName.."&description="..theString)  

[import]uid: 70635 topic_id: 32310 reply_id: 128613[/import]

now i am getting in! thanks… i have one last question… which appID must i use?? i dont have any facebook application. thats is very odd for me! [import]uid: 185094 topic_id: 32310 reply_id: 128615[/import]

go to http://developers.facebook.com/
create a new app (your account has to be verified for this) and add the appID to the link.
[import]uid: 70635 topic_id: 32310 reply_id: 128617[/import]

this facebook app will be the source for my mobile app to support the sharing… am i right? [import]uid: 185094 topic_id: 32310 reply_id: 128620[/import]

yep. [import]uid: 70635 topic_id: 32310 reply_id: 128621[/import]

thanks for all! :smiley: [import]uid: 185094 topic_id: 32310 reply_id: 128622[/import]

Facebook works really well, once you figure out the Single Sign On (SSO) bits and you can use network.request() to do things.

And it’s quite easy…

I don’t have access to my source code to copy and paste something in to show you. I’ll try to do that later today when I’m on that computer. [import]uid: 19626 topic_id: 32310 reply_id: 128625[/import]

take a look at facebook dialogs
https://developers.facebook.com/docs/reference/dialogs/

cheers [import]uid: 70635 topic_id: 32310 reply_id: 128611[/import]

do i need a network.request url??

i cant see how this reference can help me… this reference is for web development… i am using lua-corona for mobile development…

please can you be more specific how the facebook docs can be useful in my project?

[import]uid: 185094 topic_id: 32310 reply_id: 128612[/import]

you had the right idea.
generate a link like this

 local appID = "xxxxxxxxxxxxxxx"  
 local redirectUri = "http://www.canupa.com/"  
 local fbLink = "http://www.canupa.com/products/"  
 local fbPic = "http://canupa.com/images/stories/canupa\_logo\_tm.jpg"  
 local fbName = "AppName"  
  
 -- do a native.showWebPopup() and open the generated link.  
 native.showWebPopup(20, 20, display.contentWidth - 40, display.contentHeight - 160, "http://www.facebook.com/dialog/feed?display=touch&app\_id="..appID.."&redirect\_uri="..redirectUri.."&link="..fbLink.."&picture="..fbPic.."&name="..fbName.."&description="..theString)  

[import]uid: 70635 topic_id: 32310 reply_id: 128613[/import]

now i am getting in! thanks… i have one last question… which appID must i use?? i dont have any facebook application. thats is very odd for me! [import]uid: 185094 topic_id: 32310 reply_id: 128615[/import]

go to http://developers.facebook.com/
create a new app (your account has to be verified for this) and add the appID to the link.
[import]uid: 70635 topic_id: 32310 reply_id: 128617[/import]

this facebook app will be the source for my mobile app to support the sharing… am i right? [import]uid: 185094 topic_id: 32310 reply_id: 128620[/import]

yep. [import]uid: 70635 topic_id: 32310 reply_id: 128621[/import]

thanks for all! :smiley: [import]uid: 185094 topic_id: 32310 reply_id: 128622[/import]

Facebook works really well, once you figure out the Single Sign On (SSO) bits and you can use network.request() to do things.

And it’s quite easy…

I don’t have access to my source code to copy and paste something in to show you. I’ll try to do that later today when I’m on that computer. [import]uid: 19626 topic_id: 32310 reply_id: 128625[/import]

thanks again rob! i ll waiting! [import]uid: 185094 topic_id: 32310 reply_id: 128728[/import]