facebook-login

Activities vs. Fragment Implementation

安稳与你 提交于 2019-12-07 08:06:03
问题 I am having some trouble working with Activities and Fragments. I am in the early stages of app development and am ultimately looking to design the most efficient way of integrating two separate screens. The first screen would be the "Splash Screen", It would present the user with the Logo, the ability to enter user information and sign in through either a database or with Facebook. There would also be a button available to allow the user to register for the app. The second screen would allow

Facebook app - Silent “Protocols must match” error

风格不统一 提交于 2019-12-07 04:23:19
问题 Here is my current login flow for my Facebook app (see this answer for an explanation). logout() and login() are dummy functions that render the page when the user is logged out or logged in. window.fbAsyncInit = function() { FB.init({ appId: '...', channelUrl: window.location.protocol + '//' + window.location.host + '/channel.html', status: false, cookie: true, xfbml: false, oauth: true }); FB.getLoginStatus(function(response) { if (response.status === 'connected') { login(response); } else

PFFacebookUtils logInInBackgroundWithReadPermissions doesn't open Facebook after iOS9 update

时光怂恿深爱的人放手 提交于 2019-12-07 03:54:15
问题 I've updated to iOS9, and now my Facebook login button, which calls: [PFFacebookUtils logInInBackgroundWithReadPermissions:@[@"public_profile"] block:^(PFUser * _Nullable user, NSError * _Nullable error) {...} doesn't even attempt to open Facebook. I've added the necessary files to my info.plist file (as suggested here), which now looks like this: But the FB app doesn't launch, and the block is never called. Any ideas? 回答1: The (Parse) Facebook login in iOS9 by default will use Facebook in

LoginButton asking for friends list permission, why?

拈花ヽ惹草 提交于 2019-12-07 03:13:35
问题 I am using the built in LoginButton widget in the facebook sdk, I haven't made any changes to it I just include it in my xml layout file and call setSessionStatusCallback nothing else. However, when I click the login button facebook says I am asking for both basic info AND the friends list. I do not want permission to view the users friends, and after looking though the source of LoginButton it seems like it shouldn't be asking either, its permissions String list is empty. Whats going on here

How to get email from facebook

匆匆过客 提交于 2019-12-06 16:29:41
I have created an application. There is form, in which there are two fields email and name. There is button, which enable you to login with facebook and after that it will get the user name and email. I have tried many ways. I can get name and other detail, but I couldn't get user email. I have also used fql to get the email but didn't get. Below is the code. I want to retrive that by PHP. $fql = 'SELECT contact_email FROM user WHERE uid = '.$user; $res = $facebook->api(array('method' => 'fql.query', 'query' => $fql)); Can any one will tell me how to get the email. Any help will be appreciable

facebook login fails: {Session state:CLOSED_LOGIN_FAILED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[]}, appId:131***64547}

瘦欲@ 提交于 2019-12-06 14:53:08
问题 I try this code to perform login to my app using fb. public class FacebookLogin2Activity extends BaseActivity { private String TAG = "MainActivity"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.facebook_login); Session session = Session.getActiveSession(); if (session != null && session.isOpened()) { fetchUserDetails(session); } LoginButton authButton = (LoginButton) findViewById(R.id.authButton); authButton

django-allauth returns error “Reverse … with arguments '()' and keyword arguments '{}' not found”

佐手、 提交于 2019-12-06 14:51:55
EDIT: Kevin's answer below solved my issue. Turns out "allauth does not support namespaces" so I shouldn't have introduced this into my urls.py ORIGINAL POST: I have installed django-allauth exactly as per tutorials https://github.com/pennersr/django-allauth I have a very basic problem here; can't get basic user login/out pages working even before I add in social integration. By navigating to /admin, I clicked "log out", so I am not a logged in user. Now when I visit /accounts/login I am met with this error NoReverseMatch at /accounts/login/ Reverse for 'account_signup' with arguments '()' and

Facebook Login Button: Workaround for bug of Chrome on iOS

只谈情不闲聊 提交于 2019-12-06 14:04:16
Currently, I am trying to solve a bug logged in Facebook Developer: https://developers.facebook.com/bugs/325086340912814/ I am using ASP.NET MVC 3 with Facebook C# SDK and Facebook Javascript SDK. Here is javascript code: window.fbAsyncInit = function () { // init the FB JS SDK FB.init({ appId: '298365513556623', // App ID from the App Dashboard channelUrl: 'http://www.christianinfoportal.com/channel.html', // Channel File for x-domain communication status: true, // check the login status upon init? cookie: true, // set sessions cookies to allow your server to access the session? xfbml: true /

Redirect activity after facebook login

假装没事ソ 提交于 2019-12-06 11:27:09
I'm using Android Facebook SDK (4.01) to login to my app with Facebook. The facebook login from my MainActivity succeeds and then I use Intent to procced to next activity. That part works. After that in my new activity (MainLobby) I want to able to logout from facebook and return to my previous MainActivity, by pressing back button. For some reason when I press back the MainLobby closes, but has another MainLobby activity behind it. So I have to press back button twice to get back to MainActivity. Why is that? Main Activity class code: @Override protected void onCreate(Bundle

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

泄露秘密 提交于 2019-12-06 10:29:28
问题 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