I'm developing a Facebook app that has a responsive layout. Sometimes my app has to generate a link for the user. Whenever possible, the links will send the user to a Page Tab (when the user is on a desktop) and other times it will link directly to the app (when the user is on a mobile phone).
What is the default behavior for Facebook on tablets? Does it show the mobile site or the desktop site?
Should I use the mobile or desktop version of my app on tablets?
Update: In response to BBog's question in the comments:
My app prefers the desktop version because it includes a Like-gate. If the user experience is good for a tablet to view the app in a page tab (which is only available on www.facebook.com ie non-mobile), then that is preferred because the like button will be displayed at the top of the page, above the app's iframe. In contrast, the mobile version of the app requires that the user click a link that takes them to the (mobile) facebook page which they must like to un-gate the app. It adds an extra step for the user and requires that they navigate away from the app for a moment. Users might be discouraged by this extra step and decide not to enter the gate.
For Android tablets - Honestly, it depends on how you want Facebook to handle it. If you look at the android native app linking wiki - https://developers.facebook.com/docs/mobile/android/deep_linking/, Facebook provides you the option to choose the user experience. The facebook native android app itself treats tablets like mobile phones. It would be ideal if your app is compatible with tablets, and then you can enable deep-linking which will let the user view the content inside of your app.
For iOS, it's handled from within the iOS bundle id.
Unable to find a concrete answer, I ended up detected the user's referral on the first page access. Then if www.facebook.com is in the url, I go to desktop. Otherwise I go to mobile..
if ($detect->isTablet()) {
session_start();
if (!isset($_SESSION["tabletAsMobile"]))
$_SESSION["tabletAsMobile"] = (stripos($_SERVER["HTTP_REFERER"], 'www.facebook.com')===true):'0':'1';
}
$useMobileLinks = ($detect->isMobile() || ($detect->isTablet() && $_SESSION["tabletAsMobile"]));
}
Related
On mobile devices, I can force facebook to show the desktop main screen with
https://www.facebook.com/home.php
on the other hand there are specific pages like this famous one
https://www.facebook.com/4/
Is there a way to combine those and showing a specific facebook page on a mobile device (iPhone) in desktop mode? Something like
https://www.facebook.com/home.php?showme=/4/
or
https://www.facebook.com/4/?mode=desktop
The last two urls don't work. They're here to illistrate what I'm searching for.
Yes. I'm aware that Safari on iOS allows the user to force Safari to show the Desktop Sit and this works with facebook. But I'm looking for a solution without forcing the user doing this each time.
I need to implement facebook login in Adobe AIR app for Desktop/Mobile.
I saw some docs on the code required for this.
My concern is, which platform should be selected in facebook apps console. Is it web ? Then what should be the web urls & where to place them ?
Well if you are building a mobile app, then you might want to select Android or iOS depending on the platform. If you are building the same app for both platforms then select any one of those and later under settings of your app dashboard you can click on Add Platform and add the other one. If your app has a canvas presence then you can add that as well later on. Regardless of what you pick initially, you can always add/edit platforms on your app dashboard.
I've created an IOS app as a Facebook Developer. So my question:
Are people able to see the app when they go into their Facebook - like in the Browser? Or are Facebook IOS apps only something that you can see in the actual app on the iphone/iPad that I'm creating?
Depending on whether the Facebook developer configured a canvas facing site will show what the end user will see.
Any application made by a third party once set to public in app settings can be viewed by anyone.
If you app is made for iOS then either the user will see a misconfigured webpage or dialog asking whether the user wants to send to mobile. All of this of course depends on how the the developer of the application sets everything.
See the documentation for detailed information
https://developers.facebook.com/docs/facebook-login/v2.2
My app is showing on facebook desktop, m.facebook.com, but not on the native app?
I meant not showing on bookmark or favorite. When I search for it within the native app I can find it.
According to the documentation it should also appear on the native Facebook app bookmark?
Can anyone please advise what did I do wrong? I have set the mobile web setting already.
Thanks
If your app has a native app, the it will show up in the Facebook app bookmark list. If you app is a desktop or canvas app, it shows up on desktop. If your app is a mobile site, then it shows up on m.facebook.com. You need to specify the type of app or apps you support/have/exist in the developer dashboard for the app.
I am working in face book functionality in my apps. I have integrated the latest Face book-IOS-SDK. When runs the application, the application is started and runs in the safari browser. Now I want to load the application in the user view(FB web view) instead of Safari. How can I achieve this?
Facebook doesn't want you to. Facebook's new SDK wants the user to login into Facebook once, and than that Facebook login be used in every app on the device that uses Facebook. Because of the way the iPhone works, the way they had to do that was through safari so that each app could get that info. You can go back to the original way (which so far I personally prefer), but I'm not entirely sure how.
However, if you use the new way, it will automatically redirect the user back to your app once they finish authenticating it. Also in the Safari page they can give your app permissions, ie. post status updates.