I am trying to implement Facebook JS SDK login in my CodeIgniter app.
Loading page for couple of time I get this statement in console:
Service Worker termination by a timeout timer was canceled because DevTools is attached.
It isnt error, It is displayed in blue color.
When I try to call FB.login() I get this error
FB.login() called before FB.init().
The code is copied from facebook developers page.
After couple of minutes the blue text is not there. Couple reloads - again.
Related
I'm following the tutorial for Publishing using the Share Dialog on the Custom Stories in iOS section.
https://developers.facebook.com/docs/ios/open-graph
When I want it too, it switches to the Facebook App, the Graph Object is presented to the user (image, title etc) for a few seconds and then disappears and Post button greys out. If I tap the Post button before it greys out, I get an error message logged:
Error publishing story: Error Domain=com.facebook.Facebook.platform Code=102
"The operation couldn’t be completed. (com.facebook.Facebook.platform error 102.)"
UserInfo=0x16d48640 {error_code=102, app_id=1435110413425124,
error_message=An error occurred during publishing.}
FYI, the standard share dialogue presentShareDialogWithLink:handler: is working fine and letting me post - it's just when I present one with a Graph Object attached to it.
I would post sample code, but it'm using the same code that's in the tutorial above. Besides, I'm pretty sure this is to do with settings in the App Dashboard, not the code I'm writing.
Per this question on Stack Overflow Facebook SDK - iOS - Fail to share URL (Error 102), I've confirmed that:
My App's Settings are set correctly in App Dashboard (including iPhone Store ID and Bundle ID)
By info.plist file is configured correctly.
This question facebook error code 102 with sdk 3.6 suggested using a real Facebook user who was an administrator of the app. I tried that, but the problem still occurred for me.
I also tried it with the App published, and with it unpublished and there was no difference.
I'm wondering if anyone else has any ideas for things I haven't checked yet?
I'm a numpty.
Despite the fact I said I'd checked the settings were correct in App Dashboard, I had misspelt the Namepsace.
If your Facebook app status is "development and unavailable to the public" will caused same result.
You may want to change it to public under "App Review" on the Facebook app menu. Or you need to login Facebook as role "Administrators", "Developers" or "Testers"
On my website, I am able to see the plugin in Chrome while others cannot. No one is able to see the plugin in IE. I tried using the iframe code and now I am using the HTML5 code. Any ideas?
http://craftcaferochester.com/
Thanks a lot!
This is probably your problem:
FB.getLoginStatus() called before calling FB.init().
I saw it in Chrome console. To resolve, see this:
FB.getLoginStatus() called before calling FB.init() error in console
Update:
You should register at Facebook Developers to obtain the appId and channelUrl. Go to JavaScript SDK and read the Loading and Initialization section. When you registered as a developer, you may obtain them from App Dashboard.
Like button error since yesterday - URL could not be liked because it's been blocked.
i get this error when i click the like plugin from my actual app canvas page. although i can go to the actual app page and like the page by hitting the like button on that page.
This error started experiencing from yesterday. Any help will be much appreciated.
App page- https://www.facebook.com/pages/World-Footie-Manager-Play-Free-Football-Soccer/169765953131927
App canvas page ( where error occurs)- https://apps.facebook.com/worldfootballmanager/
I have a facebook XFBML activity tab, using the usual <fb:activity ...></fb:activity>; the code comes straight from https://developers.facebook.com/docs/reference/plugins/activity/.
If the user is logged into facebook when the page is loaded, it works fine.
If the user is not logged in initially, the box is blank (fair enough). When he presses the login button on my page to log into facebook and sign up for my app, I attempt to refresh the activity plugin using the function:
FB.XFBML.parse();
(see http://developers.facebook.com/docs/reference/javascript/FB.XFBML.parse/)
After 30 seconds, however, this fails, leaving the activity box blank and giving the following error on the console:
1 XFBML tags failed to render in 30000ms
Does anyone have any ideas why this might be?
I have an application that publish an open graph action (news.reads).
When someone who doesn't have the app installed click on the icon it should open the Auth Dialog.
Instead I have two scenarios:
Into the timeline nothing happens, or a loading popup is showed. The auth dialog never appears and the user is not redirected to the article too.
Into the ticker the user receives an error message:
API Error Code: 100
API Error Description: Invalid parameter Error
Message: redirect_uri URL is not properly formatted
example of url with error: https://www.facebook.com/connect/uiserver.php?app_id=289255557788943&method=permissions.request&redirect_uri=%2Fconnect%2Fuiserver.php%3Fapp_id%3D289255557788943%26method%3Dpermissions.request%26redirect_uri%3Dhttp%253A%252F%252Fg1.globo.com%252Fplaneta-bizarro%252Fnoticia%252F2012%252F03%252Fbritanicos-faturam-mais-de-r-85-mil-vendendo-anuncios-em-seus-rostos.html%253Ffb_action_ids%253D372579739430867%2526fb_action_types%253Dnews.reads%2526fb_source%253Dother_multiline%26response_type%3Dcode%26display%3Dasync%26perms%3Doffline_access%252Cemail%252Cpublish_actions%252Cuser_birthday%252Cuser_religion_politics%252Cuser_relationships%252Cuser_hometown%252Cuser_likes%26auth_referral%3D1&response_type=code&display=async&perms=offline_access%2Cemail%2Cpublish_actions%2Cuser_birthday%2Cuser_religion_politics%2Cuser_relationships%2Cuser_hometown%2Cuser_likes&auth_referral=1
If the user access the canvas page of the app directly the auth dialog appears correctly.
Anyone can help?
Please test that you see the same functionality on www.beta.facebook.com - if you so, file a bug at developers.facebook.com/bugs