Utilize the Facebook SDK Login (iOs/Android) for being logged into Facebook # Web? - iphone

Straight Forward:
User logs into my iPhone/Android App with Facebook SDK [so i got an id and authtoken for that user]
... functionality using the FB SDK and much more ...
I open a WebView inside my pp and load the facebook profile of an other user, but in this webview im NOT logged in.
Is there a possibility, to utilize my login (id/authtoken) from the SDK to get the user automatically logged in inside the webview?
TIA

On iOS you can use single sign on, see https://github.com/facebook/facebook-ios-sdk, scroll down to 'Single Sign On' section with it's description.
This is not a direct solution but perhaps it could help.

Related

Use facebook smartphone App to login in Captive Portal auth page

Is there a way to use mobile apps Facebook (Apple, Android, etc ...) to automatically authenticate users who wish to use social access for the Captive Guest-Wifi portal or similar services?
I worked with the standard social login authentication module of the standard captive portal which intercepts the first call of the operating system (Captive Portal Assistant) or the standard browser (Chrome, Safari, FF, etc ...), but this means that a user must know his credentials.
It could be easier to use the App where the customer is already logged in...
thanks!
I need to authenticate the facebook user not to only open Facebook App.
To do it, check this link - Facebook Login for Android out. It would help you.
Also, in this question - Making facebook login work with an Android Webview there is a method to create a Facebook login button with their javascript API.
The problem that you may face is "Android captive portal's splash page limitation". The splash page has a lot of limitations on js codes.
After that, if you faced this kind of problem, create a redirect page for the splash page and on the redirected page, you can do anything you want as a normal web page.

facebook sdk once-only login webapp

Hi I have a question for the facebook javascript sdk. Is it possible, and if yes how, that the user login only one time and then the user is always logged in instead of every application start go on the login button again? I try to make a webapp and run it with webview in android. Any apps have that function e.g. draw something.
That´s what FB.getLoginStatus is for, it checks if the user authorized your App already and refreshes the Token: https://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/
More information: http://www.devils-heaven.com/facebook-javascript-sdk-login/

Facebook sdk4 php switch User feature

I am developing a site to manage Facebook Feeds and is using facebook-php-sdk-v4-4.0-dev.I have the user Login and access token saved to database functionality working properly.
I need to show Switch Facebook User account Option, If he is already logged into facebook account. Currently if he is logged into facebook account on another tab. There will not be facebook authentication, It just shows App Permissions window and then completes facebook login process.
But I found that this option is available in Facebook Login for the Web with the JavaScript SDK example...A pop up come up for Login and you can switch user on top right side.
Please let me know how to accomplish this in PHP sdk 4 or work around, or am I missing something here.
Thanks in advance....
Please see this screenshot
https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xpf1/t39.2178-6/10574702_711575178930859_1600770327_n.png
I have added a screenshot where JavaScript SDK show switch user button (top right side)when user is logged in to facebook account in another browser tab.(this comes up as pop up)
But there is no such option when using php sdk. instead of pop up, its come as a webpage and it does not have switch user account.

Unity3d Facebook SDK login with browser

I am creating a game application using Unity3d tool. In that I shared some texts and photos in Facebook. So that I have used Facebook SDK(Prime31).
Case 1: Facebook app already installed
If login the facebook from my app, the facebook application's login screen is opened.
Case 2: Facebook not installed
If login the facebook from my app, the browser will open the facebook login screen.
My question: Is it possible to open the browser window for facebook login even the Facebook app already installed?
Reason: If I use the case 2, the facebook login is success. But If I use the case 1, the facebook login is failed and it shows the "Invalid access token error". This is happened only in the "HTC" mobile devices. So I want to use case 2 even facebook app installed in the device.
If possible Can you give me the steps to do that?
You better ask them here instead of asking people on StackOverflow. Ask them on forum, PM or Email them on their page.
Only Facebook's SDK chooses how authentication occurs. We couldn't choose that one.
Finally I got this answer from Prime31 plugin forum.

Mobile Website Facebook Login using Facebook App for login details

Using a web browser e.g. Chrome on Android, if a mobile website requires a user to be logged in to Facebook and they are not, the browser will ask for Login details even though the phone may be logged in to Facebook via the Facebook native App. Is there any way to get details from the Facebook App without the user having to log in again?
If you want to login in website in a browser, using Facebook account from Facebook app - it is impossible, without intermediary application, or service. And even with it, I don't think, that you can get user login data.
Other approach - is try to launch Facebook app from your site, and show site from it, but again, you can't login to it, using app.
Why? Because the app, holds only token data, and nothing more. You can't get other information, like password, or email. Also, the work of browser, that save cookies and the app, that save token is different. You can't connect them together.
Clearly speaking it is not possible using website in browser.
Even it is also not possible if you develop any android app, the reason is that the facebook app will not share any data to any other app (even if it is running on the same device).
I also don't think that launching the facebook app from browser will be feasible for you, as you just want to use the facebook login system and then want the users back on your website (and again facebokk will not send any data to your web or app even if it is launched from your web or app).
I think it's not possible, because we wont link browser and an app.
I developed one android app with facebook login integration.If facebook native app already logged in, now i click my app facebook login button it directly redirect my app to my home page without asking fb username and password.
For me i used localStorage in javascript
localStorage.setItem("userName", userName);
localStorage.setItem("password", password);
var uname=localStorage.getItem('userName');
var pass=localStorage.getItem('password');