URL Scheme facebook page post - facebook

How do I use the url scheme to facebook from a link in the mobile browser open the facebook app on a specific post of a page?
In href tried using:
fb://page/"id" - opens the page correctly
tried using fb://post/"id_post" - does not work, just open the facebook app

Related

Facebook Canvas URL redirection to 404 Page of Facebook

I had created a facebook canvas app and till now using canvas page url as
https://apps.facebook.com/272901126185053/
But now while opening that URL its redirecting to 404 page of Facebook. Means that canvas app not exist. But which was working perfect fine earlier
I try to research on facebook Developers page but unable to get much help from it.
The Canvas URL can't be : https://apps.facebook.com/272901126185053/
It should the URL to the app where it is hosted. The link you mentioned is the canvas page.

Visiting my custom Facebook tab app doesnt work on mobile?

I've currently setup a custom tab app on my fanpage - visiting this is working perfectly fine from my browser.
However when visiting the same url from my mobile, I just get some red text on Facebook saying "The page was not found".
I've defined the following (noteworthy) settings for the app:
Namespace (which gives me a canvas page)
Canvas url
Secure canvas url
Page tab url
Secure page tab url
I then also tried to fill out the "Mobile site url" with the same url as the canvas url - thinking this was the missing brick? But atleast not difference.
Any ideas?
because in your mobile browser it will redirect to the m.facebook.com and this functionality is not available for the app users.
You can't achieve this functionality exactly but you can work around Facebooks limitations by providing a canvas app url, and using that to redirect mobile users to a mobile version of your app, and desktop users to the page tab version of your app.
Detailed instructions here:
https://stackoverflow.com/a/15860533/121285

Why does 302 redirect does not work in a iframe?

In facebook documentatin page login for canvas, they says:
Because your application is being loaded in an iframe, returning a 302 to redirect the user to the Login Dialog will be unsuccessful.
What is the reason for a 302 redirect not working inside an iframe? Does it mean that if I have any redirect in my app, should I do it via javascript, as they suggest or only this one?
Thanks in advance
Your app is in an iframe on the facebook website. So if they allowed that iframe to open another facebook page, it would look like a "facebook inside of facebook".
When a user loads your app in a canvas page, Facebook sends you a signed_request via POST to that page. You can read about how to handle that in the documentation.

Facebook app as page tab - login redirects to actual website rather than the page tab

I have created a simple Facebook app and added it as a tab page. There is a login button on the page which works, however it redirects to the actual website. I would like the user to be returned to that tab once they have logged in. Is this possible?
URL: https://www.facebook.com/pages/Duaworld-Third-Vision/202611989828272?sk=app_278389335561559
SDK: PHP
Appreciate the help,
Jaap
You could set your redirect URL to something on your site-domain, so it matches the app settings in Facebook and have that URL just issue a 301/302 redirect to send them to the Facebook fan page.

Sharing an app that is on a facebook fan page

Afternoon,
I have a facebook application that i have added to a facebook fan page, this application has an URL like http://facebook.com/fanPage?sk=app_id. Now i if copy this link and try and share it on the facebook fan page it uses the description/image from the page and not from the application like it want.
Is there any way to change this? The correct meta tags are in place.
Peter
yes there is a way, but not directly. facebook always fetches the meta tags of the top page, as your app runs in an iframe its not fetched.
but you can submit a wallpost (as user or as a fanpage) via the api and give alle information you want. (like image, video, description, title, ....)
see http://www.fbrell.com/fb.ui/feed for an example.
An other variant:
You add a canvas app beside your facebook app. (see the app settings) on this page you add the meta tags for the wallposts, and a javascript which redirects to the fanpage like
top.location.href = 'http://www.facebook.com/mypage?sk=app_id'
when ever you want to share you use the canvas app url. Facebooks greper ignores the javascript redirects but read the meta tags. A user clicking the wallpost is automaticly redirected to the fanpage - tab.