# Error with facebook.

**URL:** <https://forums.solar2d.com/t/error-with-facebook/325719>\
**Category:** iOS\
**Created:** [May 22, 2014, 11:10am UTC](https://forums.solar2d.com/t/error-with-facebook/325719 "2014-05-22T11:10:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ytqretp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/y/7993a0/32.png) [@ytqretp](https://forums.solar2d.com/u/ytqretp)\
**Post date:** [May 22, 2014, 11:10am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/1 "2014-05-22T11:10:24Z")

</div>

Hello,

First I apologize for my poor English, i am from spain and this its my first post.

I have a problem when I try to connect to facebook from an ios device.

when the login request is made, I receive a warning that the application will not be able to publish on facebook.

I make the login asking permission to post. (**_facebook.login(facebookAppId, fbListener, {“publish\_stream”})_**)

when I try to publish i get two errors from fb, **_com.facebook error 123_** and **_com.facebook error 5_**.

I spent the last two days looking for a solution but can not find.

if anyone knows how to fix would greatly appreciate it

thanks.

---

<div class="post-metadata">

**Author:** ![bjsorrentino](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bjsorrentino](https://forums.solar2d.com/u/bjsorrentino)\
**Post date:** [May 22, 2014, 7:49pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/2 "2014-05-22T19:49:24Z")

</div>

Hello @ytqretp,

May I refer you to the following resources? Facebook can be complicated to set up, and you must follow many procedures to get it working as expected. Please start here:

[http://docs.coronalabs.com/guide/social/setupFacebook/index.html](http://docs.coronalabs.com/guide/social/setupFacebook/index.html)

[http://docs.coronalabs.com/guide/social/implementFacebook/index.html](http://docs.coronalabs.com/guide/social/implementFacebook/index.html)

[http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/](http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/)

[http://coronalabs.com/blog/2014/01/14/tutorial-getting-facebook-friends-the-easy-way/](http://coronalabs.com/blog/2014/01/14/tutorial-getting-facebook-friends-the-easy-way/)

Best regards,

Brent

---

<div class="post-metadata">

**Author:** ![uniquebaby](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/u/5f9b8f/32.png) [@uniquebaby](https://forums.solar2d.com/u/uniquebaby)\
**Post date:** [May 23, 2014, 1:16am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/3 "2014-05-23T01:16:45Z")

</div>

Hello. My project same error too.

According to the same, but still have to repeat the same errors.

I can not possibly know why. Please help me.

–facebook

&nbsp; &nbsp; local function listener( event )

&nbsp; &nbsp; — Debug Event parameters printout --------------------------------------------------

&nbsp; &nbsp; — Prints Events received up to 20 characters. Prints “…” and total count if longer

&nbsp; &nbsp; —

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( “Facebook Listener events:” )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local maxStr = 20 – set maximum string length

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local endStr

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for k,v in pairs( event ) do

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local valueString = tostring(v)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if string.len(valueString) \> maxStr then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endStr = " … #" … tostring(string.len(valueString)) … “)”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endStr = “)”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( " &nbsp; " … tostring( k ) … “(” … tostring( string.sub(valueString, 1, maxStr ) ) … endStr )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; — End of debug Event routine -------------------------------------------------------

&nbsp; &nbsp; &nbsp; &nbsp; print( “event.name”, event.name ) – “fbconnect”

&nbsp; &nbsp; &nbsp; &nbsp; print( “event.type:”, event.type ) – type is either “session” or “request” or “dialog”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( "isError: " … tostring( event.isError ) )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( "didComplete: " … tostring( event.didComplete) )

&nbsp; &nbsp; -----------------------------------------------------------------------------------------

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – After a successful login event, send the FB command

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Note: If the app is already logged in, we will still get a “login” phase

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; –

&nbsp; &nbsp; &nbsp; &nbsp; if ( “session” == event.type ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – event.phase is one of: “login”, “loginFailed”, “loginCancelled”, “logout”

– &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;statusMessage.textObject.text = event.phase – tjn Added

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( "Session Status: " … event.phase )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if event.phase ~= “login” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Exit if login error

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – The following displays a Facebook dialog box for posting to your Facebook Wall

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == SHOW\_DIALOG then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if currentScene == “guideMain” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – “feed” is the standard “post status message” dialog

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.showDialog( “feed”, {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name = “Test name”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source ={ baseDir=system.ResourceDirectory, filename=“iTunesArtwork@2x.png”, type=“image” },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message =“You should download this game!”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; caption =“hello facebook”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description = “Example description.”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; link = "[http://play.google.com/store/apps/details?id=com.yfactorysoft.yoohoo\_google"](http://play.google.com/store/apps/details?id=com.yfactorysoft.yoohoo_google)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

– &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;facebook.request( “me/feed”, “POST”, {message = “Hello Facebook”} )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – for “apprequests”, message is required; other options are supported

&nbsp; &nbsp; elseif currentScene == “method” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.showDialog( “apprequests”, {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = “Example message.”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Request the Platform information (FB information)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == GET\_PLATFORM\_INFO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “platform” ) – \*\*tjn Displays info about Facebook platform

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Request the current logged in user’s info

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == GET\_USER\_INFO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me” )

&nbsp; &nbsp; – facebook.request( “me/friends” ) – Alternate request

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – This code posts a photo image to your Facebook Wall

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; –

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == POST\_PHOTO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(true)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if currentScene == “sceneTest1” or currentScene == “sceneTest2” or currentScene == “spanishScene1” or currentScene == “spanishScene2” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if POSTIMAGE ~=nil then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(POSTIMAGE)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local attachment = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = POSTMESSAGE …"\n" …"[http://m.kf.or.kr/",](http://m.kf.or.kr/)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source = { baseDir=system.DocumentsDirectory, filename=“loading\_spinner.jpg”, type=“image” }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/photos”, “POST”, attachment ) – posting the message

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif POSTIMAGE == nil then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local attachmentNOT = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = POSTMESSAGE …"\n" …"[http://m.kf.or.kr/",](http://m.kf.or.kr/)

&nbsp; &nbsp; – &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source = { baseDir=system.ResourceDirectory, filename=“Icon-xxhdpi.png”, type=“image” },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/feed”, “POST”, attachmentNOT ) – posting the photo

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif currentScene ~= “sceneTest1” or currentScene ~= “sceneTest2” or currentScene ~= “spanishScene1” or currentScene ~= “spanishScene2” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local attachmentNOMAL = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = "[http://m.kf.or.kr/",](http://m.kf.or.kr/)

– &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source = { baseDir=system.ResourceDirectory, filename=“Icon-xxhdpi.png”, type=“image” },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/feed”, “POST”, attachmentNOMAL ) – posting the photo

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – This code posts a message to your Facebook Wall

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == POST\_MSG then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local time = os.date("\*t")

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local postMsg = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = "Posting from Corona SDK! " …

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; os.date("%A, %B %e") &nbsp;… ", " … time.hour … “:”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; … time.min … “.” … time.sec

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/feed”, “POST”, postMsg ) – posting the message

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; -----------------------------------------------------------------------------------------

&nbsp; &nbsp; &nbsp; &nbsp; elseif ( “request” == event.type ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – event.response is a JSON object from the FB server

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local response = event.response

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( not event.isError ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response = json.decode( event.response )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == POST\_PHOTO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onComplete()

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; elseif ( “dialog” == event.type ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; end

if (appId) then

print(“start facebook”)

facebook.login( appId, listener )

fbCommand = POST\_PHOTO

facebook.login( appId, listener, {“publish\_actions”} &nbsp;)

end

---

<div class="post-metadata">

**Author:** ![corona7539](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@corona7539](https://forums.solar2d.com/u/corona7539)\
**Post date:** [May 23, 2014, 11:25am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/4 "2014-05-23T11:25:35Z")

</div>

Hi!,

I have the same problem, i try the links, but I did not get to fix it.

someone has other options or advice?

---

<div class="post-metadata">

**Author:** ![dbh](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@dbh](https://forums.solar2d.com/u/dbh)\
**Post date:** [May 24, 2014, 6:35pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/5 "2014-05-24T18:35:57Z")

</div>

I spend two days trying to figure out what’s wrong with my Facebook code too.

I can only get it to work if I grant basic rights to my public information the first time I run my app. Then close my app and run it a second time. Not until the second run will Facebook ask me to grant rights to the email address? Very frustrating.

facebook.login(facebookappId, facebook\_listener, {‘email’} &nbsp; )

I also tried to run the login twice with a logout, but that doesn’t work either. And yes, I did the logout in and new login in the Facebook\_listener and it only runs once.

Any suggestions appreciated.

I tried with latest public release and latest daily build.

---

<div class="post-metadata">

**Author:** ![happymongoose](https://forums.solar2d.com/user_avatar/forums.solar2d.com/happymongoose/32/438_2.png) [@happymongoose](https://forums.solar2d.com/u/happymongoose)\
**Post date:** [June 9, 2014, 11:02am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/6 "2014-06-09T11:02:25Z")

</div>

Did you ever find a solution to this?&nbsp; I’m having the same problem also and would appreciate any help!

---

<div class="post-metadata">

**Author:** ![dbh](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@dbh](https://forums.solar2d.com/u/dbh)\
**Post date:** [June 9, 2014, 9:15pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/7 "2014-06-09T21:15:59Z")

</div>

Yes. A lot changed because Corona switched to Facebook V2 API. They had too, all apps made for/with Facebook after April 30 had too.

V2 had lots of changes.&nbsp;

[https://developers.facebook.com/docs/apps/changelog](https://developers.facebook.com/docs/apps/changelog)

One related to my question above was, that you have to do an initial login before requesting additional rights. So you have to do two logins in a row to request additional rights, but only until your app got the rights. Then back to one login request when the app starts, because the other rights is already granted and linked to the users Facebook profile.&nbsp;

Secondly, the build I used, and I haven’t tried a later build, nor do I know if it’s the Facebook app causing the problem, but it caused very strange behavior doing the two initial logins in a row. Crashes, black screens, strange switching etc. But I added a 500 millisecond delay helped between each request and everything worked.

Last… Facebook has limited what information you get without their team approving the app. The friends list is now only limited to people already using your app. And since the app is new and in development mode, my list was empty until I created fake profiles that I made developers and added them to my app. Sigh!

---

<div class="post-metadata">

**Author:** ![happymongoose](https://forums.solar2d.com/user_avatar/forums.solar2d.com/happymongoose/32/438_2.png) [@happymongoose](https://forums.solar2d.com/u/happymongoose)\
**Post date:** [June 10, 2014, 7:27pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/8 "2014-06-10T19:27:08Z")

</div>

Thanks - that makes sense.&nbsp; I think there may also be something up with the latest builds, because I’ve tried adding various delays in between logins for basic permissions and publishing permissions, and I’m still getting crashes / black screens and even web popups - even with a 2000ms delay.&nbsp; I wasn’t aware that you were back to one login request after the two original ones, though, so that’s really useful info.

Facebook… double sigh!

---

<div class="post-metadata">

**Author:** ![bjsorrentino](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bjsorrentino](https://forums.solar2d.com/u/bjsorrentino)\
**Post date:** [May 22, 2014, 7:49pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/9 "2014-05-22T19:49:24Z")

</div>

Hello @ytqretp,

May I refer you to the following resources? Facebook can be complicated to set up, and you must follow many procedures to get it working as expected. Please start here:

[http://docs.coronalabs.com/guide/social/setupFacebook/index.html](http://docs.coronalabs.com/guide/social/setupFacebook/index.html)

[http://docs.coronalabs.com/guide/social/implementFacebook/index.html](http://docs.coronalabs.com/guide/social/implementFacebook/index.html)

[http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/](http://coronalabs.com/blog/2013/07/30/understanding-facebook-authentication/)

[http://coronalabs.com/blog/2014/01/14/tutorial-getting-facebook-friends-the-easy-way/](http://coronalabs.com/blog/2014/01/14/tutorial-getting-facebook-friends-the-easy-way/)

Best regards,

Brent

---

<div class="post-metadata">

**Author:** ![uniquebaby](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/u/5f9b8f/32.png) [@uniquebaby](https://forums.solar2d.com/u/uniquebaby)\
**Post date:** [May 23, 2014, 1:16am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/10 "2014-05-23T01:16:45Z")

</div>

Hello. My project same error too.

According to the same, but still have to repeat the same errors.

I can not possibly know why. Please help me.

–facebook

&nbsp; &nbsp; local function listener( event )

&nbsp; &nbsp; — Debug Event parameters printout --------------------------------------------------

&nbsp; &nbsp; — Prints Events received up to 20 characters. Prints “…” and total count if longer

&nbsp; &nbsp; —

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( “Facebook Listener events:” )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local maxStr = 20 – set maximum string length

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local endStr

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for k,v in pairs( event ) do

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local valueString = tostring(v)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if string.len(valueString) \> maxStr then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endStr = " … #" … tostring(string.len(valueString)) … “)”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endStr = “)”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( " &nbsp; " … tostring( k ) … “(” … tostring( string.sub(valueString, 1, maxStr ) ) … endStr )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; — End of debug Event routine -------------------------------------------------------

&nbsp; &nbsp; &nbsp; &nbsp; print( “event.name”, event.name ) – “fbconnect”

&nbsp; &nbsp; &nbsp; &nbsp; print( “event.type:”, event.type ) – type is either “session” or “request” or “dialog”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( "isError: " … tostring( event.isError ) )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( "didComplete: " … tostring( event.didComplete) )

&nbsp; &nbsp; -----------------------------------------------------------------------------------------

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – After a successful login event, send the FB command

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Note: If the app is already logged in, we will still get a “login” phase

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; –

&nbsp; &nbsp; &nbsp; &nbsp; if ( “session” == event.type ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – event.phase is one of: “login”, “loginFailed”, “loginCancelled”, “logout”

– &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;statusMessage.textObject.text = event.phase – tjn Added

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print( "Session Status: " … event.phase )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if event.phase ~= “login” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Exit if login error

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – The following displays a Facebook dialog box for posting to your Facebook Wall

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == SHOW\_DIALOG then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if currentScene == “guideMain” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – “feed” is the standard “post status message” dialog

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.showDialog( “feed”, {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name = “Test name”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source ={ baseDir=system.ResourceDirectory, filename=“iTunesArtwork@2x.png”, type=“image” },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message =“You should download this game!”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; caption =“hello facebook”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description = “Example description.”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; link = "[http://play.google.com/store/apps/details?id=com.yfactorysoft.yoohoo\_google"](http://play.google.com/store/apps/details?id=com.yfactorysoft.yoohoo_google)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

– &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;facebook.request( “me/feed”, “POST”, {message = “Hello Facebook”} )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – for “apprequests”, message is required; other options are supported

&nbsp; &nbsp; elseif currentScene == “method” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.showDialog( “apprequests”, {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = “Example message.”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Request the Platform information (FB information)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == GET\_PLATFORM\_INFO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “platform” ) – \*\*tjn Displays info about Facebook platform

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – Request the current logged in user’s info

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == GET\_USER\_INFO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me” )

&nbsp; &nbsp; – facebook.request( “me/friends” ) – Alternate request

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – This code posts a photo image to your Facebook Wall

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; –

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == POST\_PHOTO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(true)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if currentScene == “sceneTest1” or currentScene == “sceneTest2” or currentScene == “spanishScene1” or currentScene == “spanishScene2” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if POSTIMAGE ~=nil then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(POSTIMAGE)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local attachment = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = POSTMESSAGE …"\n" …"[http://m.kf.or.kr/",](http://m.kf.or.kr/)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source = { baseDir=system.DocumentsDirectory, filename=“loading\_spinner.jpg”, type=“image” }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/photos”, “POST”, attachment ) – posting the message

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif POSTIMAGE == nil then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local attachmentNOT = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = POSTMESSAGE …"\n" …"[http://m.kf.or.kr/",](http://m.kf.or.kr/)

&nbsp; &nbsp; – &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source = { baseDir=system.ResourceDirectory, filename=“Icon-xxhdpi.png”, type=“image” },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/feed”, “POST”, attachmentNOT ) – posting the photo

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif currentScene ~= “sceneTest1” or currentScene ~= “sceneTest2” or currentScene ~= “spanishScene1” or currentScene ~= “spanishScene2” then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local attachmentNOMAL = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = "[http://m.kf.or.kr/",](http://m.kf.or.kr/)

– &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source = { baseDir=system.ResourceDirectory, filename=“Icon-xxhdpi.png”, type=“image” },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/feed”, “POST”, attachmentNOMAL ) – posting the photo

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – This code posts a message to your Facebook Wall

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == POST\_MSG then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local time = os.date("\*t")

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local postMsg = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message = "Posting from Corona SDK! " …

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; os.date("%A, %B %e") &nbsp;… ", " … time.hour … “:”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; … time.min … “.” … time.sec

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; facebook.request( “me/feed”, “POST”, postMsg ) – posting the message

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; -----------------------------------------------------------------------------------------

&nbsp; &nbsp; &nbsp; &nbsp; elseif ( “request” == event.type ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – event.response is a JSON object from the FB server

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; local response = event.response

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( not event.isError ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response = json.decode( event.response )

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if fbCommand == POST\_PHOTO then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onComplete()

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; &nbsp; &nbsp; elseif ( “dialog” == event.type ) then

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; native.setActivityIndicator(false)

&nbsp; &nbsp; &nbsp; &nbsp; end

&nbsp; &nbsp; end

if (appId) then

print(“start facebook”)

facebook.login( appId, listener )

fbCommand = POST\_PHOTO

facebook.login( appId, listener, {“publish\_actions”} &nbsp;)

end

---

<div class="post-metadata">

**Author:** ![corona7539](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@corona7539](https://forums.solar2d.com/u/corona7539)\
**Post date:** [May 23, 2014, 11:25am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/11 "2014-05-23T11:25:35Z")

</div>

Hi!,

I have the same problem, i try the links, but I did not get to fix it.

someone has other options or advice?

---

<div class="post-metadata">

**Author:** ![dbh](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@dbh](https://forums.solar2d.com/u/dbh)\
**Post date:** [May 24, 2014, 6:35pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/12 "2014-05-24T18:35:57Z")

</div>

I spend two days trying to figure out what’s wrong with my Facebook code too.

I can only get it to work if I grant basic rights to my public information the first time I run my app. Then close my app and run it a second time. Not until the second run will Facebook ask me to grant rights to the email address? Very frustrating.

facebook.login(facebookappId, facebook\_listener, {‘email’} &nbsp; )

I also tried to run the login twice with a logout, but that doesn’t work either. And yes, I did the logout in and new login in the Facebook\_listener and it only runs once.

Any suggestions appreciated.

I tried with latest public release and latest daily build.

---

<div class="post-metadata">

**Author:** ![happymongoose](https://forums.solar2d.com/user_avatar/forums.solar2d.com/happymongoose/32/438_2.png) [@happymongoose](https://forums.solar2d.com/u/happymongoose)\
**Post date:** [June 9, 2014, 11:02am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/13 "2014-06-09T11:02:25Z")

</div>

Did you ever find a solution to this?&nbsp; I’m having the same problem also and would appreciate any help!

---

<div class="post-metadata">

**Author:** ![dbh](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/96bed5/32.png) [@dbh](https://forums.solar2d.com/u/dbh)\
**Post date:** [June 9, 2014, 9:15pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/14 "2014-06-09T21:15:59Z")

</div>

Yes. A lot changed because Corona switched to Facebook V2 API. They had too, all apps made for/with Facebook after April 30 had too.

V2 had lots of changes.&nbsp;

[https://developers.facebook.com/docs/apps/changelog](https://developers.facebook.com/docs/apps/changelog)

One related to my question above was, that you have to do an initial login before requesting additional rights. So you have to do two logins in a row to request additional rights, but only until your app got the rights. Then back to one login request when the app starts, because the other rights is already granted and linked to the users Facebook profile.&nbsp;

Secondly, the build I used, and I haven’t tried a later build, nor do I know if it’s the Facebook app causing the problem, but it caused very strange behavior doing the two initial logins in a row. Crashes, black screens, strange switching etc. But I added a 500 millisecond delay helped between each request and everything worked.

Last… Facebook has limited what information you get without their team approving the app. The friends list is now only limited to people already using your app. And since the app is new and in development mode, my list was empty until I created fake profiles that I made developers and added them to my app. Sigh!

---

<div class="post-metadata">

**Author:** ![happymongoose](https://forums.solar2d.com/user_avatar/forums.solar2d.com/happymongoose/32/438_2.png) [@happymongoose](https://forums.solar2d.com/u/happymongoose)\
**Post date:** [June 10, 2014, 7:27pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/15 "2014-06-10T19:27:08Z")

</div>

Thanks - that makes sense.&nbsp; I think there may also be something up with the latest builds, because I’ve tried adding various delays in between logins for basic permissions and publishing permissions, and I’m still getting crashes / black screens and even web popups - even with a 2000ms delay.&nbsp; I wasn’t aware that you were back to one login request after the two original ones, though, so that’s really useful info.

Facebook… double sigh!

---

<div class="post-metadata">

**Author:** ![Ajay\_McCaleb](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@Ajay\_McCaleb](https://forums.solar2d.com/u/Ajay_McCaleb)\
**Post date:** [December 19, 2015, 4:23am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/16 "2015-12-19T04:23:41Z")

</div>

Hi everyone,

While this thread may be long dead, and the old Facebook plugin is on its way out, I figure it’s time to put the nail in the coffin with this issue.

This error will occur in the event that _ **a permission requested wasn’t granted!** _

In the [source code for the old Facebook plugin](https://github.com/coronalabs/plugins-source-facebook/blob/master/ios/Plugin/IOSFBConnect.mm), this can be seen in the&nbsp;FBSessionReauthorizeResultHandlers.

```
for ( int i = 0; i \< [publishPermissions count]; i++) { if ( ![publishSession.permissions containsObject:[publishPermissions objectAtIndex:i]] ) { release = true; publishError = [[NSError alloc] initWithDomain:@"com.facebook" code:123 userInfo:nil]; break; } }

```

This will also occur for read permissions that were requested and not granted.

---

<div class="post-metadata">

**Author:** ![Ajay\_McCaleb](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/b4bc9f/32.png) [@Ajay\_McCaleb](https://forums.solar2d.com/u/Ajay_McCaleb)\
**Post date:** [December 31, 2015, 7:27pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/17 "2015-12-31T19:27:06Z")

</div>

This issue has been fixed in the Facebook-v4 plugin.

---

<div class="post-metadata">

**Author:** ![maurizio.gallesi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@maurizio.gallesi](https://forums.solar2d.com/u/maurizio.gallesi)\
**Post date:** [February 5, 2016, 10:54am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/18 "2016-02-05T10:54:54Z")

</div>

Hello I have a problem with FB v.4. on iOS 8 and iOS 9.

Below the LOG of the device + build.settings :

You can see the error message:

“canOpenURL: failed for URL”

“ERROR: network request failed:[http://graph.facebook.com/10153850930699820/picture?type=normal](http://graph.facebook.com/10153850930699820/picture?type=normal)&nbsp;[-1022: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.]”

Can you help me to solve this problem ?

Many Thanks

Feb &nbsp;3 17:42:23 iPhone-di-Andrea kernel[0] \<Notice\>: xpcproxy[5936] Container: /private/var/mobile/Containers/Data/Application/5CF8721B-260E-430A-AC5C-C947B54A2D0F (sandbox)

Feb &nbsp;3 17:42:24 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Platform: iPhone / iPhone6,2 / 9.2 / Apple A7 GPU / OpenGL ES 2.0 Apple A7 GPU - 75.11.5 / 2016.2803 / it-IT | IT | it\_IT | it

Feb &nbsp;3 17:42:24 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: iPhone 5

Feb &nbsp;3 17:42:25 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Countly Initialized

Feb &nbsp;3 17:42:25 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Countly Event Logged app\_start

Feb &nbsp;3 17:42:25 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Need to log in

Feb &nbsp;3 17:42:27 iPhone-di-Andrea SpringBoard[2666] \<Notice\>: MIS: Using empty blacklist.

Feb &nbsp;3 17:42:27 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Countly Response: {“result”:“Success”}

Feb &nbsp;3 17:42:27 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Countly Response: {“result”:“Success”}

Feb &nbsp;3 17:42:27 iPhone-di-Andrea Facebook[5864] \<Warning\>: -canOpenURL: failed for URL: “fb-ama://” - error: “(null)”

Feb &nbsp;3 17:42:29 iPhone-di-Andrea mediaserverd[2249] \<Warning\>: 17:42:29.026 WARNING: &nbsp;[0x16e12f000] 255: Sub\_AudioSessionSetActiveWithFlags: WARNING translating CMSession error: -16980

Feb &nbsp;3 17:42:29 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Error setting audio session active to 1! ‘!pla’

Feb &nbsp;3 17:42:29 iPhone-di-Andrea SpringBoard[2666] \<Error\>: &nbsp;SecTrustEvaluate &nbsp;[leaf IssuerCommonName SubjectCommonName]

Feb &nbsp;3 17:42:29 iPhone-di-Andrea SpringBoard[2666] \<Notice\>: MIS: Using empty blacklist.

Feb &nbsp;3 17:42:30 iPhone-di-Andrea Facebook[5864] \<Warning\>: -canOpenURL: failed for URL: “fb183132138705616://authorize#e2e=%7B%22init%22%3A1454517745851%7D&granted\_scopes=user\_friends%2Cemail%2Ccontact\_email%2Cpublic\_profile&signed\_request=507NuN1RSNJOTIPI7EwSe1uzJ\_7pKJDRGSLFmZFRgIg.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUJodEs4dVQtU3FGb1F4MnNieWxZRVhEWkdneFM3bjFGbXhZLVU5VWhYZ2JxNHZLbnZYTlRhNzNya0x1T2w4eUIwelpucVNGaVVpYUIwbTBwX0E4X0V3THNVT1JqX2dTYnB6blJ5UElVRU5lb1M3cFk2bUJ4MnZlY21HUFhmQWhtZHcyZ1VnQVU4QlRLdVNsUXZlSFlobjRuNUFrZFRyLW9tT0VSSzBkUlJFXzdOT1ZnU1pIWWE3anVMYTl6WGhYcnVIMUlkOG5rSE1NaFBkeWhVMXlUbWF0YmgtNllFM3ZQbnItcVNmZWVIcDhKSmZLYUZuZEFLR1o1bmRDUlVnMXpiUHlxTWs4cTNFS2VrblF0aXRIUGVhZnpoNGRVQUtXcVg5U1ZxT2c0azN6c3I5Uy1qZU5La2dJa3BsYzNIMWhiSWNKcWRDSmtvckFpcHpqZGEzNi0wWiIsImlzc3VlZF9hdCI6MTQ1NDUxNzc0OSwidXNlcl9pZCI6IjEwMTUzODUwOTMwNjk5ODIwIn0&denied\_scopes=&access\_token=CAACmjsYTEtABAKhW1Jwwtuyot34IgenljZBT2s5d7eej1ZAcqEb3ZB6Xcj7u1hSS2gXnzRgeG7Su4D9AhZBnu1vKFpJlY3yUODXuvnIGaOzHddVvIzAPYVfNibQjRZAz8e2AK3ZAGNpKD6NOYevMpMEZCxpMifME0RgZCNF55x7kBuRZBsJGjLeDRRJ6PtBJvulqwczZCxhIZBsqDs2wCdmUZAtcebUmMKkH4WIZD&state=%7B%22challenge%22%3A%22ceQhOrqG%5C%2F395VS4NJqgUj2mUIkw%3D%22%2C%220\_auth\_logger\_id%22%3A%22611FFC2D-D639-4660-A151-E9B948E3E65C%22%2C%22com.facebook.sdk\_client\_state%22%3Atrue%2C%223\_method%22%3A0%7D&expires\_in=5183687” - error: “This app is not allowed to query for scheme fb183132138705616”

Feb &nbsp;3 17:42:31 iPhone-di-Andrea Facebook[5864] \<Error\>: [CoreBluetooth] API MISUSE: \<CBCentralManager: 0x14dd23ae0\> can only accept this command while in the powered on state

Feb &nbsp;3 17:42:32 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: WARNING: timer.resume( timerId ) ignored b/c timerId was not paused.

Feb &nbsp;3 17:42:33 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: cache path: /var/mobile/Containers/Data/Application/5CF8721B-260E-430A-AC5C-C947B54A2D0F/Library/Caches/vungle

Feb &nbsp;3 17:42:33 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: luaopen\_CoronaProvider\_ads\_admob

Feb &nbsp;3 17:42:33 iPhone-di-Andrea SpringBoard[2666] \<Warning\>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Feb &nbsp;3 17:42:33 iPhone-di-Andrea SpringBoard[2666] \<Warning\>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Feb &nbsp;3 17:42:33 iPhone-di-Andrea duetexpertd[4353] \<Warning\>: mme: eu.makeitapp.hungrywolf, 2016-02-03 16:42:33 +0000,&nbsp;

Feb &nbsp;3 17:42:33 iPhone-di-Andrea SpringBoard[2666] \<Warning\>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Feb &nbsp;3 17:42:33 iPhone-di-Andrea SpringBoard[2666] \<Warning\>: [MPUSystemMediaControls] Updating supported commands for now playing application.

Feb &nbsp;3 17:42:33 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: \<Google\> To get test ads on this device, call: request.testDevices = @[@“922f4c01f67a3f69456d9f96dcc9c51e”];

Feb &nbsp;3 17:42:33 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: -canOpenURL: failed for URL: “kindle://home” - error: “This app is not allowed to query for scheme kindle”

Feb &nbsp;3 17:42:34 iPhone-di-Andrea Bubble Magic World[5936] \<Error\>: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.

Feb &nbsp;3 17:42:34 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: ERROR: network request failed:[http://graph.facebook.com/10153850930699820/picture?type=normal](http://graph.facebook.com/10153850930699820/picture?type=normal)&nbsp;[-1022: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.]

Feb &nbsp;3 17:42:34 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Invalid Parameter: URL argument was malformed URL

Feb &nbsp;3 17:42:35 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: \<Google:HTML\> You are currently using version 6.12.2 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from&nbsp;[http://goo.gl/iGzfsP](http://goo.gl/iGzfsP). A full list of release notes is available at&nbsp;[https://developers.google.com/admob/ios/rel-notes](https://developers.google.com/admob/ios/rel-notes).

Feb &nbsp;3 17:42:48 iPhone-di-Andrea SpringBoard[2666] \<Notice\>: MIS: Using empty blacklist.

Feb &nbsp;3 17:42:48 iPhone-di-Andrea SpringBoard[2666] \<Warning\>: SBLockScreenNotificationListController: Attempting to remove a bulletin I don’t have

Feb &nbsp;3 17:42:48 iPhone-di-Andrea kernel[0] \<Notice\>: Sandbox: GmailHybrid(5784) deny(1) file-read-metadata /private/var/mobile/Containers/Shared/AppGroup/4A18B680-A937-4612-A06D-6AB2A4AD30BC/.com.apple.mobile\_container\_manager.metadata.plist

Feb &nbsp;3 17:43:12 iPhone-di-Andrea Bubble Magic World[5936] \<Warning\>: Invalid Parameter: URL argument was malformed URL

settings =&nbsp;

{

orientation =&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default = “portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; supported = { “portrait” }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; plugins =

&nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; – key is the name passed to Lua’s ‘require()’

&nbsp; &nbsp; &nbsp; &nbsp; [“plugin.google.iap.v3”] =

&nbsp; &nbsp; &nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; – required

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = “com.coronalabs”,

supportedPlatforms = { [“android”] = true }&nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; },

– This section is only required for builds \> 2015.2668

[“plugin.facebook.v4”] =

{

publisherId = “com.coronalabs”,

},

&nbsp; &nbsp; &nbsp; &nbsp; [“plugin.google.play.services”] =

&nbsp; &nbsp; &nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = “com.coronalabs”

&nbsp; &nbsp; &nbsp; &nbsp; },

[“CoronaProvider.ads.vungle”] =

&nbsp; &nbsp; &nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = “com.vungle”,

&nbsp; &nbsp; &nbsp; &nbsp; },&nbsp;

&nbsp; &nbsp; },

android =

&nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; versionCode = “98”,

largeHeap = true,

&nbsp; &nbsp; androidPermissions =

&nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “android.permission.ACCESS\_FINE\_LOCATION”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “android.permission.INTERNET”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; “android.permission.VIBRATE”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;“android.permission.WRITE\_EXTERNAL\_STORAGE”,

&nbsp; &nbsp; },

facebookAppId = “246988282173961”,

&nbsp; &nbsp; permissions =

{

&nbsp; &nbsp; {

&nbsp; &nbsp; name = “.permission.C2D\_MESSAGE”,&nbsp;

&nbsp; &nbsp; protectionLevel = “signature”&nbsp;

&nbsp; &nbsp; },

},

&nbsp;&nbsp;

usesPermissions =

{

“android.permission.INTERNET”,

“android.permission.VIBRATE”,

“android.permission.GET\_ACCOUNTS”,

“android.permission.RECEIVE\_BOOT\_COMPLETED”,

“com.google.android.c2dm.permission.RECEIVE”,

“.permission.C2D\_MESSAGE”,

“com.android.vending.CHECK\_LICENSE”,

“com.android.vending.BILLING”,

“android.permission.ACCESS\_NETWORK\_STATE”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;“android.permission.WRITE\_EXTERNAL\_STORAGE”,

},

&nbsp; &nbsp; },

iphone =

{

plist =

{

– For iOS 9+ only

NSAppTransportSecurity =&nbsp;

{

NSAllowsArbitraryLoads = true,

NSExceptionDomains =&nbsp;

{

[“[fbcdn.net](http://fbcdn.net)”] =&nbsp;

{

NSIncludesSubdomains = true,

NSExceptionRequiresForwardSecrecy = false,

},

[“[facebook.com](http://facebook.com)”] =&nbsp;

{

NSIncludesSubdomains = true,

NSExceptionRequiresForwardSecrecy = false,

},

[“[akamaihd.net](http://akamaihd.net)”] =&nbsp;

{

NSIncludesSubdomains = true,

NSExceptionRequiresForwardSecrecy = false,

},

[“angrywolf.baas.makeitapp.eu”] =&nbsp;

{

NSIncludesSubdomains = true,

NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,

},

},

},

LSApplicationQueriesSchemes =&nbsp;

{

“fb”,

“fbapi20130214”,

“fbapi20130410”,

“fbapi20140410”,

“fbapi20140116”,

“fbapi20150313”,

“fbapi20150629”,

“fbauth”,

“fbauth2”,

“fb-messenger-api20140430”,

},

UIAppFonts =

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {

“arialbd.ttf”,

“arial.ttf”,

“arial-narrow-bold-italic.ttf”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

UIApplicationExitsOnSuspend = false,

UIPrerenderedIcon = true,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UIStatusBarHidden = true,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FacebookAppID = “246988282173961”,

–CFBundleShortVersionString = “4.6”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFBundleURLTypes = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFBundleURLSchemes = { “fb246988282173961”, }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

[“URL types”] = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item = {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“URL Schemes”] =

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { [“Item 0”] = “fb246988282173961” }, &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp;CFBundleIconFile = “Icon.png”,

&nbsp; &nbsp; &nbsp; &nbsp;CFBundleIconFiles = {

“Icon.png”,

“Icon-167.png”,

“Icon-60@3x.png”,

“Icon-Small-40@3x.png”,

“Icon-Small@3x.png”,

“Icon@2x.png”,

“Icon-72.png”,

“Icon-72@2x.png”,

“Icon-Small-50.png”,

“Icon-Small-50@2x.png”,

“Icon-Small.png”,

“Icon-Small@2x.png”,

“Icon-Small-40.png”,

“Icon-Small-40@2x.png”,

“Icon-60.png”,

“Icon-60@2x.png”,

“Icon-76.png”,

“Icon-76@2x.png”,

“Icon-152.png”,

“Icon-152@2x.png”,

&nbsp; &nbsp; &nbsp; &nbsp;},

UILaunchImages =&nbsp;

{

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;– iPhone 4 Portrait

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageMinimumOSVersion”] = “7.0”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageName”] = “Default”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageOrientation”] = “Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageSize”] = “{320, 480}”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;– iPhone 5 Portrait

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageMinimumOSVersion”] = “7.0”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageName”] = “Default-568h”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageOrientation”] = “Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageSize”] = “{320, 568}”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;– iPad Portrait

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageMinimumOSVersion”] = “7.0”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageName”] = “Default-Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageOrientation”] = “Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageSize”] = “{768, 1024}”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;– iPhone 6 Portrait

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageMinimumOSVersion”] = “8.0”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageName”] = “Default-667h”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageOrientation”] = “Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageSize”] = “{375, 667}”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;– iPhone 6 Plus Portrait

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageMinimumOSVersion”] = “8.0”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageName”] = “Default-736h”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageOrientation”] = “Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageSize”] = “{414, 736}”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp;– iPad Pro Portrait

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageMinimumOSVersion”] = “9.0”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageName”] = “Default-Portrait-1336”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageOrientation”] = “Portrait”,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [“UILaunchImageSize”] = “{1024, 1366}”

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },

},

},

window =

{

titleText =

{

default = “Facebook”,

},

},

}

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [February 6, 2016, 3:20am UTC](https://forums.solar2d.com/t/error-with-facebook/325719/19 "2016-02-06T03:20:47Z")

</div>

This sounds like an issue with your build.settings but if I’m being honest, it’s really hard to read. When posting code to the forums please use the blue **\<\>** button and paste your code in there. It will maintain the formatting from your editor.

Next, if your build.settings is formatted like that I would highly recommend that you revisit it and intent each nested table correctly. You should be able to visually line up each closing curly brace with the block that started it. Without it, its really hard to see if you missed putting something at the right level.

Rob

---

<div class="post-metadata">

**Author:** ![maurizio.gallesi](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/5daacb/32.png) [@maurizio.gallesi](https://forums.solar2d.com/u/maurizio.gallesi)\
**Post date:** [February 9, 2016, 3:02pm UTC](https://forums.solar2d.com/t/error-with-facebook/325719/20 "2016-02-09T15:02:20Z")

</div>

Hello Rob,

below I reposted the error and the build.settings.

Could you help me ?

Thanks.

(Where XXXXXXXXXXXXX is my FB APP ID)

Feb &nbsp;9 15:10:51 iPhone-di-Andrea Facebook[1007] \<Warning\>: -canOpenURL: failed for URL: “fb183132138705616://authorize#e2e=%7B%22init%22%3A1455027043281%7D&granted\_scopes=user\_friends%2Cemail%2Ccontact\_email%2Cpublic\_profile&signed\_request=AO2TbxF1zy8wSGi1VRDEyYknCNewm\_ETPBnQ8lkxXbw.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUNnTjRrOGlLbkxjNkcxLXJzeks5THQ4aHNRUWFfbEJBUjhLTjBZQ2g3NlBia0lxdzk1blFPMDZaS0lteTg1Nm5FdDJfZ3NJTURzU3A3b1JvNWIxNjQ1QUhFaUc0QmdhdHI0c2t2ME1ib295NmRvU3dYRm1DVzVTd2NrNi1tNHowUzdEX0E2c2tFOEdWOU5mTzNMQTZ0Ym5JTkxLU1BNaG5oNmRfNXBqSXdLcVFSMEFraWg1ZTBGcDB3dzY5d0tlTjkwZ1FWZ0g2WXFPbVlxRTh2VWI5OEVaTWt0dnBQaUhUMGVoMEszWElESW45bklJLVFad1FKR2R0MUhoOWNzWUZreEFhMno5M25xV3VXeHhaVmNrSHNJQTlrOGV4Y282d1BaSFp6Um1tdG0yU3R1ZE1WcFFXckpMU2gwRkpqMkVSSS1taUcwZVBhaDRtQ0cxNzBsS2wxXyIsImlzc3VlZF9hdCI6MTQ1NTAyNzA1MSwidXNlcl9pZCI6IjEwMTUzODUwOTMwNjk5ODIwIn0&denied\_scopes=&access\_token=CAACmjsYTEtABAEsQXg1ZBaL8ZANIkMFdVdnUsC745dhF7ZCNuX7wnoRfW3a42UFvQKYDyj08iZByHPiy9FH7uIMOn5ar4JhtNwZAwjdVu6phZBoLAKc1QE7BDHcPjDTSEKYNuPEaD0gRDh6ytNk3bEHOelL2IO5iYUSAcZBYm2clTTGkDY5VcBjwzt4Xb5vkDP5R9kDXlgW5YfTYXnVpWWK19LBEeGGPXQZD&state=%7B%22challenge%22%3A%22z%5C%2FhQQuu5ZIRrMKRYuToWHul6dRc%3D%22%2C%220\_auth\_logger\_id%22%3A%22562D62B2-B557-479C-AD82-61B19475B8F6%22%2C%22com.facebook.sdk\_client\_state%22%3Atrue%2C%223\_method%22%3A0%7D&expires\_in=5182856” - error: “This app is not allowed to query for scheme fbXXXXXXXXXXXXX”

Feb &nbsp;9 15:10:51 iPhone-di-Andrea Bubble Magic World[1005] \<Warning\>: FBSDKLog: starting with Graph API v2.4, GET requests for /me should contain an explicit “fields” parameter

BUILD.SETTINGS

```
 iphone = { plist = { -- For iOS 9+ only NSAppTransportSecurity = { NSAllowsArbitraryLoads = true, }, LSApplicationQueriesSchemes = { "fbapi", "fbapi20130214", "fbapi20130410", "fbapi20130702", "fbapi20131010", "fbapi20131219", "fbapi20140410", "fbapi20140116", "fbapi20150313", "fbapi20150629", "fbXXXXXXXXXXXXXX", "fbauth", "fbauth2", "fb-messenger-api20140430", }, UIApplicationExitsOnSuspend = false, UIPrerenderedIcon = true, UIStatusBarHidden = true, FacebookAppID = "XXXXXXXXXXXXXX", CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", } } }, ["URL types"] = { item = { ["URL Schemes"] = { ["Item 0"] = "fbXXXXXXXXXXXXXX" }, }, }, }, },
```

[Next page](https://forums.solar2d.com/t/error-with-facebook/325719.md?page=2)
