Build 707 - Facebook SSO

Is there a good description of what you mean by this:

iOS/Facebook: Adds Single Sign On support
Android: Added Facebook single sign-on support

Does this mean that users will sign into FB automatically if they have the Facebook app already installed on their device?

Is there anyway this can be used to get the access token? One of my projects needs access to the token that we get back from Facebook once they authorize the app. It can be done easily in the Facebook SDK, but Corona doesn’t seem to want to give us this token. [import]uid: 84258 topic_id: 19207 reply_id: 319207[/import]

What a build! This is awesome!!!

I think you can get the access token when you register the url when your app opens. The access token will be in there… although I haven’t tried. Just wait for the docs
[import]uid: 22829 topic_id: 19207 reply_id: 74073[/import]

docs/sample code coming soon.

the bleeding edge of the bleeding edge.

c [import]uid: 24 topic_id: 19207 reply_id: 74074[/import]

facebook SSO post message to feed

guide to setup facebook app: http://blog.anscamobile.com/2011/12/uploading-photos-to-facebook-in-corona/

facebook = require "facebook"  
  
function onLoginSuccess()  
  
facebook.request( "me/feed", "POST", {  
message="Test message",  
name="The Name",  
caption="Caption",  
link="http://itunes.apple.com/us/app/your-app-name/id1234567890?mt=8",  
picture="http://www.yoursite.com/pic.png" } )  
  
end  
  
-- facebook listener  
function fbListener( event )  
 if event.isError then  
 native.showAlert( "ERROR", event.response, { "OK" } )  
 else  
 if event.type == "session" and event.phase == "login" then  
 -- login was a success; call function  
 onLoginSuccess()  
 elseif event.type == "request" then  
 -- this block is executed upon successful facebook.request() call  
 native.showAlert( "Success", "The msg has been posted.", { "OK" } )  
 end  
 end  
end   
 -- You must use your own app id for this sample to work  
 local fbAppID = "1234567890" --fake  
 -- photo uploading requires the "publish\_stream" permission  
 facebook.login( fbAppID, fbListener, { "publish\_stream" } )  

build.settings

[code]

CFBundleIdentifier = “com.site.AppName”,
CFBundleDisplayName = “App Name”,
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
“fb1234567890”,
}
}
},
[/code] [import]uid: 96683 topic_id: 19207 reply_id: 74669[/import]

@iPlayalot

Firstly thank you for posting the sample above about how to post message (instead images) to FB.

But there is something I did not understand what the meaning of using the lines below:

[lua]link=“http://itunes.apple.com/us/app/your-app-name/id1234567890?mt=8”,
picture=“http://www.yoursite.com/pic.png” } )[/lua]

What is the link? Will it post image also?
Thanks,
Rodrigo. [import]uid: 89165 topic_id: 19207 reply_id: 74732[/import]

link=“http://itunes.apple.com/us/app/your-app-name/id1234567890?mt=8”,

is a link to your app in app store.

picture=“http://www.yoursite.com/pic.png” } )

is some picture you put on your own server, that will be shown in the facebook post.
When the user clicks the picture she will go to app store [import]uid: 13632 topic_id: 19207 reply_id: 74739[/import]

@ojnab Thank you! I appreciate that.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19207 reply_id: 74828[/import]