apprequest fails to show up on user page - facebook

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.

Related

Facebook Log in Issue

I'm using Unity and prime31 plug in to access Facebook via my iPhone. I'm trying to test requests via my app by sending a request to a second test Facebook account on my iPhone (so I have my primary Facebook account and I've created a second one for the purposes of testing).
The problem I'm coming across is that I'm logging out of my normal Facebook account on the Facebook app and then logging into my test account. I'm then running my own app to test the requests. However, when I execute a 'me' graphrequest, it's still returning the details of my primary account (even though I logged into my test Facebook account before running my app).
I don't quite understand why it's doing this - I understand that there is a facebook settings page within iOS settings, but I'm not sure if this has anything to do with it?
Can anyone point out where I'm going wrong?
Thanks in advance!

App requests successful, but no notification shown

I am using the normal setup for sending invites through the requests dialogue:
FB.ui(
{
method: 'apprequests',
message: "Please add me, I am doing the same, thanks!"
},
function(response) {
console.log(response);
}
);
The response is successful, response.to shows multiple ids. So sending these invites works like it should. The problem is that these apprequests are not shown up as notifications like they usually do, instead the only place to find them here.
Has the API changed? Looking for answers has given me no results, though I did find this bug report from February 15th 2013.
Is Facebook just testing yet again, or has the API changed but not the documentation? I am truly grateful for any insights!
There's two simple things that might cause that problem.
One is that you application is missing the Canvas. Just add it from the your App panel in Facebook Developers.
The second one - make sure your app is NOT in SandBox Mode. If it is it won't send any notifications. I lost hours before figuring that out and changing the code in all possible ways.
Hope that helps.
Its not facebook bug its a problem in your facebook app configuration :
Follow the below configuration and its working like a charm.
You just need to go in to the Facebook developer and select your app and goes in to the setting of your app and click "Add Platform" and select "App On Facebook" and than add canvas url in it. now try to send invitation and it will show the notification.
Thanks
Sagar
or go to facebook developers,
Change 111 to your APP ID
-Fedmich
This was posted yesterday in facebook bugs site.
However, it is still not working for me even though I'm utilizing the exact code that the FB comment is referencing.
I realize this is not complete answer to the question and should be put in the comments. However I am a newbie and don't have enough reputation on StackOverflow to post comments. Emil, could you please let me know if you resolve this issue.
Had same issue, I added Secure Canvas URL, etc. But problem was I haven't provided iPhone Store ID inside iOS section in Settings.
As of Graph API 2.3, Game requests are only available to games.
As mentioned in Game Requests description, you have to create Facebook Web Games in App Portal, then you will get the notification with Game Request. Not for website anymore.
I had to implement facebook ‘apprequests’ instead of the deprecated ‘appinvites’ in an existing cordova app and spent hours debugging.
‘apprequests’ are only available in Facebook Apps categorized as ‘games’.
You can send notifications only to platforms (iOS, Android, Facebook web games) that are involved with the facebook app. That means, you will never receive a notification in your browser if you miss ‘facebook web games’ as platform. My expectation was to be notified in the facebook browser app if I was invited from a Mobile app.
iOS devices don’t get notifications.
In my case, I’ve missed to fill the app store id in the Facebook app platform configuration. After that, notifications appeared instantly.
If you like notifications in the fb browser app, you have to add ‘Facebook web games’ (formerly known as ‘canvas’) as plattform.
You can save yourself a lot trouble by creating test users in the app role category of your facebook app.

App on Facebook mobile gives me 4oh4 / 404

we have created a Facebook app, but when opening this on a mobile (via Web or iPhone) the page results in a 4oh4 error. I have setup a Mobile Web URL but still (after 1 hour wait) gives a 404.
Do I need to make specific changes on my app?
Please help.
This is expected as #Igy stated. You will need to have a handler to support redirecting mobile users to your apps.facebook.com/ or you can redirect them out of Facebook to your own URL if you are going to try and link to your page directly with an app embedded as a tab.
i.e. point link to http://yoursite.com/redirector
is mobile goes to http://yoursite.com/myapp or http://apps.facebook.com/
non mobile goes to http://facebook.com//app_
Some things to note:
You won't get any page specific data back from facebook on your page (i.e. Liked or Not Liked).
Based on #1 you won't be able to restrict the non-liking app users from a page.
After trying everything under the sun to get Facebook to redirect to a mobile web URL, here is what I needed to do in order to get the redirection working:
Make sure the Facebook application is a canvas application. This gives you the ability to give the application a namespace.
Give your application a namespace so that you can access it through https://apps.facebook.com/NAMESPACE. From here, Facebook will do the detection for you, and if needed, redirect your users to your specified mobile URL.
Make sure your app is NOT in sandbox mode.
If your app is in Sandbox Mode, Facebook won't redirect you to the mobile version you have specified in your app settings.
Facebook does the redirecting for you, you don't have to. Although their version of what "mobile" is and what you deem "mobile" might be different.

Facebook app invite immediately deleted from notifications

I have a website where we use the request dialog to allow users to invite their friends to check us out. From the inviters side everything works as expected. The person being invited does get the notification, but it is immediately deleted. So they would see the red 1 over the globe for only a half a second, but it immediately dissapears and the message does not stay in their list of notifications. They do get the invite in the apps and games section. This used to work, but for some reason it has stopped. Is this possibly a config thing with the app settings within facebook? Any insight would be appreciated.
SOLVED
A little more detail on this. I created this as a web app in facebook apps. It looks like it also needs to have the App on Facebook setting checked with values added for the canvas url. It works as expected now. Heres a link to what pointed me in the right direction
Notification for facebook app requests not showing up

Facebook Development and the Invite system

I'm developing a test Facebook app to just get a feel for the platform.
Programatically I can send invites with the FB API.
I send my friend an invite and he can accept the invite which takes him to my app. If he leaves the app, he can't get back to it because it does not show up in his Apps list. His Apps link says App Requests. (Is Facebook A/B Testing this?) Of course, he could bookmark the app but he shouldn't have to. The other thing I noticed. Is in my Facebook dev apps dashboard my User count is still 0.
Main question: He can't see a link to the app anywhere? And also me as the developer can't see a link without going into the Developer app.
Is this because the app is not listed/published yet in the directory? This is very confusing. Help.
Facebook is redoing the invite system. They introduced the new Requests system early in the year, and recently released v2.0. Requests under the new system will remain until you delete them programmatically or the user clicks the "X". http://developers.facebook.com/docs/reference/dialogs/requests/
As for user count, unless you request authorization and they grant it, your user count will stay at 0.