I am having a weird issue with facebook canvas application and clicking on app request notifications.
Basically if you are in the app, and someone else sends you an app request for the same app, then the notification globe will show the request. If you click on it then it just shows the message loading 'app name' and goes blank.
Works perfectly if you click on the app request while not using the app (e.g on facebook homepage).
I tried using js developer tools and it looks facebook is performing an ajax request which is not returning anything (hence blank page I suppose). The url for the ajax request is
http://apps.facebook.com/ajax/canvas/storyboxfb_app_name=appId&_user=userId&_a=1
Anyone got any ideas??
Well the issue seems to have disappeared after I supplied an app namespace. Seems like it only occurs if you use the default app id as the namespace.
Related
I'm programming a Facebook app on localhost. When some event triggers, the user gets a notification on Facebook. The notification works great, but however when he opens it, it sends a POST request to:
http://localhost:5939/Home/Messages/20
and displays like this in the browser:
https://apps.facebook.com/{FACEBOOK-APP-ID}/Home/Messages/20?fb_source=notification&ref=notif¬if_t=app_notification
If the user is located outside the app on Facebook (but on Facebook), the app loads correctly. If the user refreshes the page while in the app, it displays correctly. However when the user is located INSIDE the app and clicks the notification, it displays a white blank page.
What could be causing this?
I'm using ASP.NET MVC 4 .NET framework 4.5 and yes, my Messages controller function is POST.
I got this fixed by changing the apps Namespace to something other than blank. Now it works.
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 created a facebook and placed it on my facebook brand page, I also created a post on the wall of that page with the link to the app.
all works well until people started calling me saying that when accessing using FB iPhone app it will redirect to an error page "the page your requested was not found"
I tried adding a link (same page) to the "Mobile Web" link of my app in the FB Developer App.
it still doesn't work..
I need people accessing the app page to get some content.. I know it is possible but cant find how..
thanks for your help
Tabs aren't supported via the app or mobile site. Best you could do is add the query parameter "ref=ts" to prevent the page from going switching to mobile. It helps in the browser but not the app itself.
So add ?ref=ts to the end of your app url and at least mobile users can see it in their browser.
http://facebook.stackoverflow.com/a/10833366/461119
I have a problem since a several days now. Facebook notifications from my app (the red number one) appears and disappears. This functioning properly at first, but then but then stopped working.
I tried by entering in the Website url -> http://mipagina.com, in the canvas url -> http://mipagina.com/ and the secure url https.... I tried many other ways but nothing. I realized that the app request don't send a notification to the user for his acceptance. But I can add the app from the app page. If the user add the app the red number one appears and then disappears but the notification from my app shows in the facebook notifications page. But if the user doesn't add the app, the red number one appears and then disappears and then the notification doesn't appear in the facebook notifications page.
Hope you can help me...Please sorry for my english.
Since "user-to-user requests are only available in canvas apps" (see here), you must make sure your canvas app is properly set up.
Review that you have done ALL of the following steps:
Set Sandbox Mode to off
Selected a Namespace for your app
Enabled App on Facebook (which is the canvas app settings)
Filled out Canvas URL and Secure Canvas URL
Facebook will not notify you in its Javascript API about these issues: there it will seem like the app request notification has indeed successfully been delivered.
I have a problem with making apprequests for my website application. I can send invite with FB.ui "apprequests" method but this request is not shown on Facebook. It looks like it is blocked because it fires notification icon but in a second notification disappears.
I've found a workaround. I set application also as a canvas and make redirection from canvas to the website page. But I don't know if it will not be blocked or something in the future.
What is the recommended method to send an application requests from a website application?
From my experience and from reading the Facebook Developer Guide, it seems like it's mandatory for you to have a Canvas defined for your Facebook app so the requests render as Notifications.
I am trying to solve a problem where these notifications show fine in the Facebook website but not on the Facebook Android client's notification popup.
I personnally use this code, that works :
FB.ui({method: 'apprequests', message: 'my message'},function(response){'my callback'});
I hope this will help you.
After a bit of research and trial/error, I found that that you must use canvas.
So, to get my users out of canvas and onto my site, I created a static landing page with a large "Get Started" button hyperlink with a "target='_blank'" tag. This opens my site into a new browser window. I then used that static landing as my "CanvasURL / Secure Canvas URL" for my "App on Facebook"