I'm trying to get app requests to work and failing miserably. I'm using both Koala graph.put_object (for app-to-user) and the JavaScript dialog example by Facebook (for user-to-user). Both works in the sense that I get request IDs back, but I never see the request appear anywhere. I've tried Sandbox mode on/off, adding the recipient user as App Tester, nothing works.
Related
I created chatbot for Facebook. I tested in on one fanpage, got business and api permissions verfications from Facebook and I wanted to add the bot to more fanpages. I did it as before, I setted all Webhooks like messages, message_echoes but Facebook doesn't call my app. I'm checking it in debuging tool that shows network traffic to my server.
I tried to remove and add callback, fanpages, but nothing gets change.
The first fanpage still works all fine, but others don't call my bot on any message. Why?
assume you link your app to first fanpage with oauth dialog like this before.
oauth dialog : (See: https://developers.facebook.com/docs/marketing-api/overview/authorization)
https://www.facebook.com/v12.0/dialog/oauth
?client_id=<YOUR_APP_ID>
&redirect_uri=<YOUR_URL>
&scope=pages_messaging
when linking another fanpage with oauth dialog,
should click that edit settings button:
choose another fanpage:
now you receive webhooks from other fanpages.
So, problem was in my code. I was checking if request was sent using Symfony profiler. The problem was, it didn't save request if the process was stopped. And it was. I had "die" in some trycatch...
I able to post apprequest with my app server-side (app generated) without error. Returns Id and user to. I used FQL tool to query using appid and userid and I get results. But when I go to my facebook page I don't have a notification nor do I see app on the left side with count. Can this be a setup issue (my first FB app)? I have the app in sandbox mode, does that have anything to do with it?
how your app integrates with Facebook setting has both Mobile Web and Canvas checked. This will be primarily a Mobile Web app.
I'm able to create posts and those show up.
Any help will be greatly appreciated.
Thank you,
Rick
Indeed the issue here is sandbox mode.
Unless the user being sent the request is listed in the "roles" section of the application, the request won't really be sent out. The requests point back to your canvas URL, but with your application in sandbox mode, no one other than the team developing the application is able to reach that URL. Facebook doesn't display the notification because it wouldn't lead anywhere.
As far as you are concerned, the moment you get a request_id back after sending the request - it was completed successfully.
I have Facebook's SSO working properly in my iPhone app and most of my users have not been experiencing any issues. However, a small number of them have been reporting errors with Facebook Connect and not being able to create an account. After an email exchange with one, we determined that the app permission toggle under Settings->Facebook was somehow set to disallow my app from using Facebook.
I have since added an error message telling the user this might be the case but my question is how did this switch get toggled in the first place? It would seem that a user would have to manually toggle this switch, right? I also looked for an API method that might do this e.g. rejecting Facebook SSO the first time a user saw the dialog asking for permission; I could not find any such code.
Any ideas? I'm hoping this problem will solve itself with the error dialog I've put in but if possible, I'd like to remove this issue altogether.
As far as I know, using the native dialog with iOS6 and rejecting the permissions request (the first one, at least, not sure about requests which are asking an existing user for more permissions) will toggle that switch
If you need to debug, try uninstalling the app from your facebook profile (a HTTP DELETE request to /<USER ID>/permissions will do this, or you can do it in the facebook app settings), remove the iOS app, then install it and try to connect for 'the first time' again
I'm not sure whether my fb-app is banned by automated bot. Currently with PHP-SDK, getUser() returns 0 no matter what. It all used to be working fine till a few days before. I'm getting an access token but since getUSer() is always returning NULL, the app is not working. I didn;t have much of code changes except for opengraph meta-tags, like button and google +1 button in my webpage.
Is there any way i could check if my app is not banned?
I haven't got any mail yet regarding this.
It doesn't show up in my list of apps even though i have used it recently.
But it shows up ins search.
Log into Facebook with an account that is an administrator of your app
Then navigate to: https://developers.facebook.com/apps or more directly you could go to
https://developers.facebook.com/apps/{yourAppId}/summary
I'm using the official FBConnect library for iOS and trying to get it working in my iPad app. Here's what's strange: when my friend logs in using the call to authorize:permissions:delegate, everything works fine: the dialog asks for his authorization to connect to Facebook, the fbDidLogin delegate method gets called, all is well.
However, when I try to login, the dialog never changes. The keyboard is dismissed, the password field is cleared and it just sits there. The issue is the same in both the simulator and on the device.
Here are the things I've checked and triple checked:
My login name and password are correct. If I do put in the wrong password, an "invalid username/password" message appears, and that isn't happening.
The application is not in sandbox mode.
The Application ID is correct (my friend can login without problems).
Some additional information:
Original application was created by my friend.
I created a second FB app and put in the new Application ID
My friend can login with the new Application ID
I can log in to neither.
This appears to suggest that there is something different about my friend's account, rather than the app itself.
We've been banging our heads together on this for a couple of days now. What could be causing this behaviour? Why isn't an error being generated?
Edit: It seems there are a lot of people affected by this, so in the interest of trying to find an answer, I've added a bounty.
There appears to be a server-side problem with Facebook logins as noted here:
http://github.com/facebook/facebook-ios-sdk/issues#issue/95
People have said that if they change their password on Facebook they are subsequently able to log in using the Facebook-iOS-SDK downloaded from github. Obviously that is a poor long-term solution and would be unacceptable in an app released through the App Store. On the bright side, there seem to be reports of similar login problems logging in from apps on other platforms as well.
Update: Facebook has a bug filed on this subject that can be viewed here:
http://bugs.developers.facebook.net/show_bug.cgi?id=13199