Direct link to Facebook mobile site using pageID - facebook

graph.facebook.com/cocacola will tell you that the id for the cocacola page is 40796308305.
You can get to the cocacola page using either www.facebook.com/cocacola or www.facebook.com/40796308305.
However, to get to the mobile facebook site m.facebook.com/cocacola works, m.facebook.com/40796308305 doesn't.
For reasons I won't go into I have the pageID, not the vanity url and I need to link to the mobile site.
Specifically, I'd like to link to the equivalent of m.facebook.com/cocacola?v=feed to link to the wall instead of info.
So, I either need a way to link to a mobile page using the page id or a way to make the regular www link redirect to the mobile wall instead of the info page.

You may need to create (or discover the already created) proper "name" ID and use that together with the pageID as your landing page, for example, mine works as follows:
http://m.facebook.com/pages/BCmoney-MobileTV/190267987672979
But using just my pageID it does not:
http://m.facebook.com/pages/190267987672979
In addition, you could use the Graph API to deduce the "vanity URL" as you refer to it:
http://graph.facebook.com/40796308305
Looks like this is the page you're looking for:
http://m.facebook.com/pages/Coca-Cola/40796308305

The simplest way I found to get the mobile version of any Facebook page is to go the desktop version of the page on your browser of choice and then replace the www with m and press Enter. The Facebook Mobile Web version of the page loads in your browser.

I had the same problem with a link on a website, but I don't want everyone to go to the mobile site, just those on mobile devices.
The solution was to add ?v=wall to it. It works for both desktop and mobile now. Here is what my link looks like now: https://www.facebook.com/pages/Virginia-B-Andes-Volunteer-Community-Clinic/153180528039538?v=wall

Related

Facebook tab iframe sharing

i have a tab in a page, with an iframe to a site built up to be like a simple facebook app, where users can create simple profile pages with an image and some text.
Now, once the profile is created (which is a simple html page with its own URL), i need to be able to share it, using some sharing services (like addthis) or even the standard send button. The problem is that the original site has to be always hidden (users have to not be able to see the URL of the "site"), but the sharing system need an absolute URL to know... what to actually share.
Obiouvsly, working in an iframe, the url is always that of the facebook page (it doesn't change navigating the site's pages), so how can I do this?
Thanks.
The problem is that the original site has to be always hidden (users have to not be able to see the URL of the "site")
Why not?
Please don’t say “security concerns” right now, because you should know there is no such thing as “security by obscurity” …
If you just want to have Open Graph URLs, that can be liked and shared, but want the user clicking on one of those URLs end up being in your iframe tab on Facebook again – then do a redirect to your page tab for actual users.
Either do it via JavaScript (which the Facebook scraper does not care about); or with a server-side redirect for any client that is not the Facebook scraper (it’s identifiable by it’s user agent or originating IP address of the request).

Can't get facebook ID

I can't create an app for my FB page, when I try to access http://developers.facebook.com/apps/ I get redirected to my page. Does anyone else have a similar issue?
Sounds like you are using Facebook as your Page and not you.
Select the option use Facebook as you from your page and then you should be able to visit http://developers.facebook.com/apps/ and create an App. Shortcut link http://developers.facebook.com/setup/
Once created you can add said app to your page (still using Facebook as you and not your Page).

Like button for Facebook page shows generic Facebook description in News Feed

I want a Like button on my web site that Likes my Facebook profile (rather than my web page), so that when a user clicks it they subscribe to my Facebook posts.
I've created the Like button using the tool at https://developers.facebook.com/docs/reference/plugins/like/
Further down that page there is an FAQ entry:
Can I link the Like button to my Facebook page?
Yes. Simply specify the URL of your Facebook page in the href
parameter of the button.
So, I've edited the href parameter to point to my Facebook page. eg:
https://www.facebook.com/myfacebookid
When a user clicks the Like button it has the desired effect. The user ends up having Liked my Facebook page. This is easily verified by the user going to my Facebook profile and checking that the Like button has changed to Liked.
But. When the user clicks the Like button, and entry appears in their News Feed with a generic Facebook description. ie:
Facebook is a social utility that connects people with friends and
others who work, study and live around them. People use Facebook to
keep up with friends, upload an unlimited number of photos, post links
and videos, and learn more about the people they meet.
I don't want a generic post about Facebook to appear. I want the description to relate to my Facebook account and/or web site.
Normally, I could modify this behavior with the Opengraph og: description tag, but as the page in the href is a Facebook page and not my own, I can't control the Opengraph tags.
I'm pretty sure that this was working okay before I enabled timeline for my account, so maybe this is a timeline bug?
So, how do I add a Like button which a) Likes my Facebook profile rather than one of my own web pages, and b) Posts a description of my Facebook profile rather than give a generic Facbook description?
Are all your fields in the info part of your page filled in, and/or completed? I just tested your theory and it seemed to work as expected, only thing is I know all fields in "info" are filled it. Give that a try.
This may happen if you have filled invalid/incomplete/wrong og tags in past and later changed them. Facebook's cache creates problem sometime.
Try putting all the entries (i.e. all og tags) and then debug them here http://developers.facebook.com/tools/debug. This debugger gives a detailed info about the url with og tags and also clears the cache for you.
This should solve the problem.
You have 3 important fields that used on page opengraph: Name,Description,Profile Image.
They are used when some one post your link on Facebook, or Google or some else web service that handle opengraph.
Actually, the suggested answers currently do not work and there is an open bug / ticket on Facebook for it. Up to now, there's no fix.
The problem is that you can not use simply https://www.facebook.com/myfacebookid. You should copy and paste the exact page URL. If you have a low number of likes it would look something like https://www.facebook.com/pages/[YourPageName]/[Your page Id]/, and this is the URL that you should use at this point.
If it does not work, try also https://www.facebook.com/[YourPageName]/[Your page Id]/.
In short, copy-paste the URL, do not type it manually.

Feed dialog to event/fan page says "Sorry, something went wrong." after clicking share

Having some issues with the feed dialog when attempting to post to a event or fan page. In my application I am using the JS API and FB.ui using the method feed.
But for a demonstration you can do it using the feed url too for example:
http://www.facebook.com/dialog/feed?app_id=131727613511269&to=287203454659917&redirect_uri=http://www.timeanddate.com/
After clicking share you get the:
Sorry, something went wrong.
We're working on getting this fixed as soon as we can.
Where:
app_id = your app
to = a event / fan page
redirect_uri = a url you are allowed to redirect to
note that the app has publish_stream permissions. (it also has manage_pages for fan pages)
The app in question by the way is: http://apps.facebook.com/tndcountdown/
Thanks,
Andy
EDIT:
An Example taken straight from the documentation:
http://www.facebook.com/dialog/feed?app_id=123050457758183&link=http://developers.facebook.com/docs/reference/dialogs/&picture=http://fbrell.com/f8.jpg&name=Facebook%20Dialogs&caption=Reference%20Documentation&description=Using%20Dialogs%20to%20interact%20with%20users.&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response&to=287203454659917
just replace to=287203454659917 with an event.. (make a test one like it did there)
A few issues I've run into will dialog is that Facebook tries to fill in any missing data. So if you don't provide a description and caption, Facebook will try to scrape the page to get that content. Depending on how the page responds to the "scraping" Facebook will error out. I always make sure I include at least a space for those fields.
It seems the feed url you provided is similar to what is in the documentation. But the demo in the documentation has extra parameters.
I'm about to add page support to my Facebook app, which does the same thing as yours.
http://apps.facebook.com/countdown-timer/
As I posted here - Facebook Send Button - 'Sorry, something went wrong.'...
I had the same problem & worked out that this was due to linking to a Facebook page that did not have a vanity URL set up (i.e. http://www.facebook.com/CubicMushroom rather than http://www.facebook.com/profile.php?id=261963707177053). If you set up a vanity URL for the page it seems to work OK (providing you link to the vanity URL version of the page URL).
To claim a vanity URL, once you have a certain no of like (it used to be 25, but think it's a little lower now) visit https://www.facebook.com/username/

Hyperlinking to Facebook iframe application without knowing page name

I have a Facebook iframe app that runs on various Facebook pages. I can create a link directly to my app with the following hyperlink:
http://www.facebook.com/pages/PAGE-NAME/PAGE-ID?sk=app_APP-ID
where PAGE-NAME, PAGE-ID, and APP-ID are populated with their corresponding variables.
Is there a way to link to my app if I don't know the PAGE-NAME, and only know PAGE-ID and my APP-ID?
I can link to the page without knowing the PAGE-NAME using the following hyperlink:
www.facebook.com/profile.php?id=PAGE-ID
However I can't seem to find a way to link to my app's iframe on the page. I've tried these 2 links but they don't work either:
www.facebook.com/profile.php?id=PAGE-ID&sk=app_APP-ID
www.facebook.com/profile.php?id=PAGE-ID&v=app_APP-ID
http://graph.facebook.com/PAGE_ID
json_decode that, get the LINK field.
append your
?sk=app_APP-ID