facebook-sdk-3.0

Android facebook login not working with installed Facebook app

你离开我真会死。 提交于 2019-12-18 02:40:46
问题 I have set up simple facebook login. For Android 2.3.6 everything works as should, user gets prompt login dialog, enters data and app goes on. I thought that it was android versions fault but it turs out that the login isn't working when there is facebook application installed on the phone! Tested this on: Galaxy Ace 2.3.6 HTC Desire 4.1.2 Galaxy Note 4.1.2 Android emulator 4.1.2 Even the facebook samples are not working! Every time the app is executing - else { Log.d("SESSION NOT OPENED",

How Do I Fetch Name and Email using Facebook SDK

£可爱£侵袭症+ 提交于 2019-12-17 21:20:35
问题 I am using a TextView to show Name and Email of logged in facebook user, but i really don't know How do I fetch Name and Email ? private void onSessionStateChange(Session session, SessionState state, Exception exception) { if (session != currentSession) { return; } if (state.isOpened()) { // Log in just happened. Toast.makeText(getApplicationContext(), "session opened", Toast.LENGTH_SHORT).show(); } else if (state.isClosed()) { // Log out just happened. Update the UI. Toast.makeText

Facebook App canvas Page not loading

风格不统一 提交于 2019-12-13 05:06:04
问题 I keep getting this error when I try to use my app I created for Facebook. When I go the the url for the app it take me to the login page, but when I log in I get a pop up box with the error. App Not Setup: The developers of this app have not set up this app properly for Facebook Login. Every time I click ok it just reloads the popup again. I have already changes the satatus to Live under status and review in my dashboard. When I log into my account on facebook, it works fine, but I suppose

Login with facebook in iPhone without redirecting to the web browser?

我的未来我决定 提交于 2019-12-13 04:50:29
问题 I have used login with Facebook in my app and its working well I am using Facebook sdk 3.10 , but it just redirects me to the web browser and open the Facebook login page pr permission if there is already a session exists, but I don't want in this way I want the a login popup of Facebook like in previous sdks should open and there I fill the credentials my code is below please what can I change in this to do the same. NSArray *permissions =[NSArray arrayWithObjects:@"email",@"user_location",@

Facebook Android SDK, “Unrecognized 'com.facebook.platform.protocol.PROTOCOL_ACTION' extra: 'com.facebook.platform.action.request.LOGIN_DIALOG'”

一笑奈何 提交于 2019-12-13 02:19:31
问题 Developing a Facebook single-sign-on app, but when testing login without the Facebook app installed, this error occurs in com.facebook.LoginActivity's authorizationClient's onCompleteListener. There's a tiny spinning waiting dialog, then that disappears and when if I set a breakpoint in it's listener, this is the errorMessage there, Unrecognized 'com.facebook.platform.protocol.PROTOCOL_ACTION' extra: 'com.facebook.platform.action.request.LOGIN_DIALOG'. This is occurring on my Nexus 5, running

NSDictionary<FBGraphUser> *user syntax explanation

霸气de小男生 提交于 2019-12-12 17:14:23
问题 In the Facebook iOS SDK requests are returned with the following handler: ^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *user, NSError *error) { } The user variable can then be accessed with calls like these... self.userNameLabel.text = user.name; self.userProfileImage.profileID = user.id; This syntax is somewhat similar to the syntax id <protocolDelegate> object syntax that is a common property declaration, except for that the NSDictionary is the id object explicitely, and

Request.GraphUserCallback cannot be resolved to a type

别说谁变了你拦得住时间么 提交于 2019-12-12 02:07:15
问题 I am getting error-"Request.GraphUserCallback cannot be resolved to a type" in the flollowing code.. Session.openActiveSession(this, true, new Session.StatusCallback() { // callback when session changes state @Override public void call(Session session, SessionState state, Exception exception) { if (session.isOpened()) { // make request to the /me API Request.newMeRequest(session, new Request.GraphUserCallback() { // callback after Graph API response with user object @Override public void

Facebook LoginButton inside Dialog

别说谁变了你拦得住时间么 提交于 2019-12-12 01:38:32
问题 I'm working with Facebook SDK. I'm adding Facebook LoginButton inside a Dialog, but when I click it, my request doesn't work. public class StartsFragment extends Fragment { ClassicButton classicButton; Dialog dialog; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.starts_fragment, container, false); final Fragment startsFragment; startsFragment = this; Button joinUs = (Button) view.findViewById

Android - Facebook SDK 3, login and post to wall with one button

风流意气都作罢 提交于 2019-12-12 01:28:10
问题 The code below is taken from the official tutorial. I'm using ActionBarSherlock, so my Activity extends SherlockFragmentActivity, it works if I use them one time each (login and post), but it can't work if I want to login and post with only one button. The class variable: private static final List<String> PERMISSIONS = Arrays.asList("publish_actions"); private static final String PENDING_PUBLISH_KEY = "pendingPublishReauthorization"; private boolean pendingPublishReauthorization = false; The

Unable to access facebook login?

冷暖自知 提交于 2019-12-11 15:47:10
问题 I am using Facebook's official Android SDK, and I am administrator of an app on Facebook. I read that by default, the app is in sandbox mode and no one except administrator and developers can access it. I am using it to add Facebook login facility in my android app. However, I added my friends, who are developing the app with me as developers, but they cant log in via Facebook with their account credentials from the app. I disabled the sandbox mode for app from Facebook's app settings, still