How to log API Errors on my server? - facebook

In my Facebook App Insights I see a section called "API Errors Returned" which indicate that I have a few API Errors everyday.
How can I log all the API Errors my App generates so I can fix them or at least know what's wrong?

I am also getting API errors returned according to Insights. But the Most Common Errors list is empty. Is this a bug?
I believe these API errors are related to a bug we have uncovered and has yet to be fixed by Facebook. The bug we have open with them has had it's status changed and we cannot get them to re-open it. Our website app (FilmCrave.com) is behaving like it has a canvas URL when we do not have one set. In our Basic App settings page, we only have Website checked, App on Facebook is NOT checked (this is where you set your canvas URL).
Thanks,
Nick
FilmCrave.com

Related

Facebook Invalid Scopes error on test app

All of a sudden I'm getting an "Invalid Scopes: manage_pages" error during login in the test version of my Facebook app.
The full error message is:
Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions
The live app is working fine.
Everything was working fine in the test app as well until this morning.
If I read the provided docs link it looks like manage_pages permission is still in use.
Anybody has an idea of what could be wrong with it?
This is a bug that was recently introduced. It's already been reported to Facebook: https://developers.facebook.com/bugs/1605866199656679
As of 3 hours ago, it had been identified by Facebook engineering and a resolution should go live tonight (6-5-2015 PST). You can follow the status of the fix here: https://developers.facebook.com/status/issues/582921985181374/

iOS app misconfigured for Facebook integration

I am using the facebook-iphone-sdk framework to integrate my iPhone app to FB. The problem is when I click the button it gives an error "The application you are using is misconfigured for the Facebook integration. Please download the latest version of the app."
I was able to connect with FB only once. For the first time it worked fine and I was also able to post some data into my wall but afterwords it not working, and the above error occurs.
What could I be doing wrong?
The Bundle ID is case sensitive so watch out for that.
e.g. com.myapp.MyApp is not the same as com.myapp.myapp
This happened to me and gave the same error message.
May be you are using the deprecated API of facebook... Please use the New FBGraph API for facebook integration ....
How to share or post by mail, twitter and facebook from the current application?
This is not only about email... here you will find the tutorial and sample code for facebook integration.....!!
Possible Solutions:
1) Double Check that you are putting in the right facebook app id in your code, and that you didnt somehow overwrite that when you made it work the first time.
2) Check that in the facebook developer profile you have all the proper things set up (They have decent doc's for how to set up properly).
3) Check that you are using the most up to date version of the SDK for fb.
4) Consider using the built-in Facebook for iOS6, since you probably wont be releasing your app before iOS 6 comes out anyways.
5) If all else fails, start over and go through the instructions from beginning to end. Check and re-check everything you set up and carefully scan for little typos or something. It's probably a minor mistake somewhere that you're overlooking.
6) Post code if you want more specific help. An error message isnt enough to deduce what your problem is.
Just delete you app from facebook dashboard, create it again, and then change the facebookID in you App-Info.plist, in the key FacebookAppId and URL types array key. I did it and my app works fine.
Delete facebook app, force perform login in safari..

Facebook Application Error: https://www.facebook.com/4oh4.php

I am new in developing my facebook application. I know php, HTML. I have a application in my server: http://www.example.com/app_name
with only one file written in php i,e index.php
I filled all the requisite as instructed by facebook documentation for canvas URL and all. Now when i am trying to access this http://apps.facebook.com/app_name
I get this error: The Page you requested was not found.
https://www.facebook.com/4oh4.php
Can anyone please help me????
There is a currently open bug report in Facebook's bug tracker about this issue: https://developers.facebook.com/bugs/325223977546904
It could take a while for your app to propagate to all FB servers so you may just have to wait a little. Are you logged in as the administrator to the app? If you have it set to private then you will be redirected to the 404 page if you are not an admin or tester.
I had the same issue which seemed to be transitory. About ten minutes later the site started working again. Facebook.... Sigh.

Facebook Connect: "Error occurred with <app> Please try again later"

I have an iPhone app that's using facebook connect via the ios-sdk to upload videos to facebook. It's been working fine until today. Most users are able to upload ok but one particular user gets this dialog first:
permissions ok
Once he hits ok he gets this dialog:
error dialog
I looked in the diagnostics for any errors and I didn't see any. The only thing I did notice was under feature requests it says "requests 1.0 - 30" for limit per user per day. I don't know if a particular user is running up against some limit or something else is going on.
The other interesting thing is that we have a full version and lite version. He can upload via the lite version but not the full version. Both versions use the same api calls for uploading videos.
update: User deleted the app from privacy settings in his facebook account. Then the app re-authorized and it all worked.
How did it get into this state? Is there a way to detect via the IOS app and resolve it?
Occasionally Facebook will return that error and most of the time (for me) there is nothing I can do to fix it except try again.
This error happens to me not only in this similar situation but also everywhere like Feed Dialog, Request Dialog, etc...
I'm pretty sure it's Facebook server error.

Twitter page no longer exists, Token used error

I am working on implementing sharing an image via Twitter in my application and I have come across this page.
When I run my app in my simulator I can no longer log into Twitter. I get a page stating that "This page is no longer valid. It looks like someone already used the token information you provided."
I have gone to Twitter and to the Applications page and removed this application to try again. I still get this warning page though.
When I try to run the app on my device it crashes when I tap the Twitter Button.
Has anyone found a solution to this?
Or if someone could point me to a solid Twitter/TwitPic reference tutorial that actually works that would be great as well.
Check these sample twitter apps source codes, will lead you for smooth implementation,
https://github.com/bengottlieb/Twitter-OAuth-iPhone
https://github.com/luciuskwok/HelTweetica
https://github.com/takuma104/ntlniph
http://code.google.com/p/tweetero/
http://jaanus.com/post/1451098350/an-example-iphone-twitter-app
I got this problem.
Woah there!
This page is no longer valid. It looks like someone already used the
token information you provided. Please return to the site that sent
you to this page and try again. It was probably an honest mistake.
Turns out the fix for this was simple although it took some hunting down!
The date/time on the server running the app had somehow become a day behind.
Twitter checks the time sync when using the API, and if the client doesn’t have the correct time, it’ll report the above error.
Maybe you've got some loop or a method that is being called twice?