Links to Facebook pages with Facebook's browser broken - iphone

The situation:
1) I created a post in Facebook to this page: http://calendar.dondley.com/official-westfieldma-facebook-pages/
2) The page contains a list of links back to Facebook pages, formatted like this: https://www.facebook.com/1519027881736551
The problem:
1) A user taps on the link to the webpage using the Facebook app on their iPhone
2) The Facebook app opens the web page in the Facebook browser.
3) User taps on one of the links that takes them back to Facebook.
4) User sees this:
Additional info:
1) No problem on my Android Nexus 4 simulator and others have reported that it works OK on their Android. The problem only appears to happen with iPhone.
Any workaround or fix?

The fix is to not use https://www.facebook.com/{page_id} but https://www.facebook.com/{page_link}
So instead of https://www.facebook.com/1234878723423 use https://www.facebook.com/WhateverLinkToPageIsHere

Related

Sending URL using Facebook messenger from my Mobile Website

I am looking to send some link over Facebook Messenger app from my mobile website on Chrome Browser on my mobile. I am using the facebook messenger's custom URI Scheme fb-messenger://share. I saw this option on the the following link: Custom URI Schemes for the Facebook Messenger I used the full url as: fb-messenger://share?ShareType=ShareType.regular&share_story_url= I tried multiple options for share, as mentiond in the link above, but nothing works. It tries to open the app and closes.
You can do it by adding the following link to your page:
I don't know what else you can pass except for the link, maybe a user ID with to (probably the same params as described in the dialog method
i'm facing same issue and this is not working in ios devices.
In android devices its working fine.
I have used this one:
fb-messenger://share?link=" + smsString; (smsString is var)

Facebook App calling after QR - Code Scanning

I am facing an issue when calling my Facebook App after scanning QR - Code.
Problem: When I scan my QR - Code its open correct Facebook App URL but asking for login twice one is normal Desktop browser view & second time in Facebook Mobile view & when I insert login details second time it navigate me on Facebook Mobile version home page not on my app page.
Please have look below url,it will help you
Url:https://developers.facebook.com/docs/android/login-with-facebook/

How do I display a facebook app without the apps.facebook link

I have a facebook iframe app which opens properly with a link like https://apps.facebook.com/<app_name>
However I want it to open with a profile like https://www.facebook.com/<name>/app_<app_id>.
For example: https://www.facebook.com/inwi.ma/app_425874907457614
Any idea how this can be achieved?
What you need to do is add this application as a page tab to gain accces to a URL like that.
More info on how to get started with your tab application can be found on Facebook's documentation - https://developers.facebook.com/docs/appsonfacebook/pagetabs/

How do I get back to the iPhone web app after having logged in with Facebook Connect?

I have a mobile web site built using jQuery Mobile. I often run it in full screen/mobile web app mode on my iPhone (I have added the web app to my iPhone home screen).
On one of the pages, the user is required to log in to Facebook using the Facebook Connect JavaScript API. If the user is not already logged in, this is done by clicking a login button. The event handler for this button looks like this:
("#fbLogin").click(function () {
FB.login(handleStatusChange(response),
{ scope: "publish_stream",
connect_display: "touch" });
});
In the above code I have inserted some line breaks for better readability, but the values are like in the example. The callback function (handleStatusChange) takes care of the response from the login request.
When I click this, the Facebook login page is opened in my web app window. If I haven't already accepted the Facebook App, I have to give it permissions as well. All this seems to work fine. But after I have given permissions/logged in I'm left hanging on a totally blank screen.
I have also tried another approach to logging in, by putting this inside the login button event handler:
window.location = "https://www.facebook.com/login.php
?api_key=MY_API_KEY
&cancel_url=http%3A%2F%2Fwww.mywebsiteurl.com%3A8081
&fbconnect=1
&next=http%3A%2F%2Fwww.mywebsiteurl.com%3A8081
&return_session=1
&session_version=3
&v=1.0
&req_perms=publish_stream
&connect_display=touch";
Again, line breaks have been inserted for better readability. When used it's just one long string.
The URL used in the cancel_url and next parameters is the one I have registered with the Facebook Application. If I try using a different URL (like http://www.google.com) I get an error so the this seems to be correct. As you can see I use a different port on my development server (port 8081). Could this be a problem?
The result is similar to the previous example. I get the login/permissions pages but I'm left with a blank screen after everything is done. I tried this after reading this post on the old Facebook Developer forum.
If I, on the other hand, try running this in Safari (not as a full page iPhone web app) the login works great.
Is there anything else I can try? Does anyone have a JavaScript API Facebook Connect login working while running in full screen/web app mode on an iPhone?
Thanks in advance!
Not sure if this helps you, but I found that adding the iOS Safari link fix, also allowed Facebook login to work in my fullscreen web app without opening up the page i "regular" Safari:
// Make links work in iOS fullscreen web app
function disableSafariLinks() {
$("a").click(function (event) {
event.preventDefault();
window.location = $(this).attr("href");
});
}
See also iPhone Safari Web App opens links in new window

How can I get the facebook user-agent string when click a link in Facebook app?

I have created a facebook application that is used for posting a message to the wall. The application works fine. In the message I post there is a link. When I use the iphone facebook app and click this link instead of having Safari open immediately, the url opens in an internal frame of the facebook app and by click the small arrow it has the on the right bottom I can choose 'Open in safari'. This happenes only in iphone.
Is there a way to make my links open directly yo Safari?
Or is there a way yo get at least the facebook user-agent string so as to have a special treatment for this case?
Thanks in advance