Messenger API: User is of mobile or desktop? - facebook

Is it possible to get the information from Messenger API that if the Messenger bot user is from a desktop device or a mobile device?

Nope, this isn't currently available. The only option is to check user-agent in the webview.

Related

Facebook login from smart TV

Is is possible in facebook to open access for OAuth without opening an iframe. I need this to enable facebook login from my smart tv application.
No it is not. Unfortunately the Facebook App on Samsung SmartTVs is using a deprecated FB API no longer available for new 3rd party users.

How should my users invite their Facebook friends to use my web app?

We have an app where users interact in small private groups. We want to allow our users to invite their Facebook friends into a group. We previously posted a private link on a friend's timeline but Facebook disabled that last week: https://developers.facebook.com/roadmap/#february-2013
The apprequest dialog will not work as it is limited only to canvas and mobile applications:
Requests are only available for Desktop Canvas, iOS and Android apps. Accepting a request on Canvas will direct the user to the Canvas Page URL of the app that sent the Request. For native mobile apps, accepting the request will direct the user to the app on their device if installed or to the appropriate location (Apple App Store or Google Play) to download the app otherwise.
from: http://developers.facebook.com/docs/reference/dialogs/requests/
I was thinking of using Facebook Open Graph and creating an action and mention tagging, but that seems like a hack, and I dont think engagement will be as high.
What do you think the best way to do this is?
Thanks!
Use Send to invite them in a private message.
https://developers.facebook.com/docs/sharing/reference/send-dialog

How can I get notification on iphone facebook app from facebook mobile web app

I have made facebook mobile web app.
It sometimes send the facebook push notifiactions.
Facebook web page(www.facebook.com) recieves the notifications well, but the facebook mobile app(iOS and android) doesn't.
Is it possible to send notification to the facebook mobile app from my facebook web app?
Thank you.
Are you using the notifications api ? If so, you should know it only sends out notifications on the website. From https://developers.facebook.com/docs/app-notifications/,
Note: Only apps on Facebook.com can use the Notifications API. Also these notifications are only surfaced on desktop version of Facebook.com.

Possible to use the native facebook app to log into a mobile html5 app? On the iPhone

I'm trying to have my html5 site open the native iPhone Facebook app to authenticate users.
The site currently uses OAuth 2 on the server side - so it redirects everyone to the web version of Facebook. This is a problem because I dont want to force people to log in on a tiny keyboard.
Can you get the html5 app to open in Safari and authenticate through the native FB app?
If this is not possible with Facebook is it possible with Twitter apps? What is the experience like on android?
I do know that you can authenticate between a native iPhone app and the native Facebook app.
Yes you can do this just use the boilerplate code in facebook developers section of the site and following the guide exactly... I have tried this and it worked for me you just need to find a way to connect your oAuth to this...

Check if someone is logged onto Facebook using mobile

I am developing an app only for mobile users. How could I check if a user is logged into Facebook using a mobile phone?
NOTE: If user is not logged in via mobile phone then content of the app should not be displayed.
Here is a brief guide on how to implement SSO(Single-Sign-On) for mobile devices.