facebook-sdk-4.0

How to change text of facebook button in Facebook sdk 4.7.0 android

点点圈 提交于 2019-12-12 03:24:11
问题 I am using facebook to login in my app and i want to change default text of facebook login button.how can i do that, <com.facebook.login.widget.LoginButton android:id="@+id/authButton" android:text="facebbok" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:paddingBottom="12dp" android:paddingTop="12dp" /> Thank you. 回答1: Add to your strings.xml: <string name="com_facebook_loginview_log_out_button

ParsefacebookUtils returning wrong values in Parse

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:18:46
问题 for my android application i wanted to integrate a facebook login, so i did exactly what is here: https://github.com/ParsePlatform/IntegratingFacebookTutorial Everything seems to work fine however the values which are stored in the parse backend are not convenient, here is for example what i get after login with my facebook account: emailVerified:empty username:adGdJMxcCQCAo2..... authData: {"facebook":{"access_token":"CAAMBDxU3HgUBAMYQ8q2mnjDqeKBz2sw......","expiration_date":"...","id":

Error importing Facebook SDK for Facebook Sign In Android

让人想犯罪 __ 提交于 2019-12-12 02:59:22
问题 The document says You'll need to have the Android 2.2 (API 8) Can I only achieve it using API 8 ? I have been doing project on API 14 and if I download API 8 and try to move forward, will I get trouble? What should I do? ERROR Unable to resolve target 'android-8' I have consulted every question on StackOverFlow. But I'm not quite sure if to begin whole project with API 8 :-( 回答1: NO. There is no trouble!! . Only facebook sdk required to work mimimum API 8 , maximum they will update for new

Post image from android to facebook page

泄露秘密 提交于 2019-12-12 01:19:52
问题 I have successfully post a feed in facebook page form the graph api. try { resObj.put("message","feed from android"); //resObj.put("object_attachment",bitmap); } catch (JSONException e) { e.printStackTrace(); } GraphRequest request = GraphRequest.newPostRequest( AccessToken.getCurrentAccessToken(),"363453267193844/photos",resObj, new GraphRequest.Callback() { @Override public void onCompleted(GraphResponse graphResponse) { Log.i(TAG,"post page response::"+graphResponse); } } ); request

Facebook iOS SDK 4.0.1 “You must upgrade this app to Graph API v2.x”

做~自己de王妃 提交于 2019-12-11 18:25:20
问题 I am trying to upgrade a facebook app from using the soon-to-be-deprecated 1.0 API to the current one. I have replaced the frameworks (FBSDKCoreKit, FBSDKLoginKit) with the current ones (4.0.1). Doing this upgrades the app when I log in using the web-fallback. However, when I log in through the facebook app I still get the deprecation warning. This is my (abstracted) code: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSLog(@

what is AppLink URL in FB.Mobile.AppInvite in Facebook SDK for Unity? and how to get it? or make it?

有些话、适合烂在心里 提交于 2019-12-11 13:34:18
问题 I am using Unity 5.3.4f1 and Facebook SDK for unity 7.4 The problem is poor documentation and not having step by step guide to facebook SDK FB.Mobile.AppInvite in: https://developers.facebook.com/docs/unity/reference/current/FB.Mobile.AppInvite FB.Mobile.AppInvite( new Uri("www.HereGoesTheAppLinkUrl.com"), new Uri("https://www.dropbox.com/s/vzl519vvf4hfe3j/3DTank1200X628.png?dl=0"), AppInviteCallback }; The issue is what is AppLink? how to create it? any Csharp code for that? where is the

Facebook SDK Android: OnSuccess called but OnCancel not called

别等时光非礼了梦想. 提交于 2019-12-11 12:52:35
问题 I have implemented a facebook login for my app. After the successful login, the onSuccess() callback is called. However, When I logout from facebook, the onCancel() callback is not called though the logout is successful. In the logs I see the following line after I click the logout: 01-24 17:22:07.801 952-952/? W/SurfaceFlinger: couldn't log to binary event log: overflow I am using the API 23. Tried it on the Emulator with Android 6.0 and Facebook SDK 4.6.0 The following is my code: package

What permission(s) do I need to read the names of the users who posted to a Facebook page?

醉酒当歌 提交于 2019-12-11 10:33:24
问题 I want to write a Python script that reads the names of the Facebook users who wrote a message on my Facebook Page. I'm using the facebook-sdk Python library. The lines graph = facebook.GraphAPI(page_access_token) profile = graph.get_object(profile_id) posts = graph.get_connections(profile['id'], 'feed') print(posts['data'][0]['message']) print(posts['data'][0]['from']['name']) work fine when I use a short-lived access token retrieved by just copying it from the Graph API explorer. But when I

Sharing Facebook access tokens between different devices of same user

笑着哭i 提交于 2019-12-11 03:45:19
问题 Users can log in to our app from different devices. We want to transfer users' access tokens to all devices they log in from for them not to go through Facebook login steps again in each device they use. In one of Facebook's developer documentation pages (https://developers.facebook.com/docs/facebook-login/access-tokens/portability), it's said that; Access tokens are portable. This means that once you obtain a token, you can generally use it from any machine - server, client, or otherwise.

PFFacebookUtils logInInBackgroundWithReadPermissions: block: opens Facebook app instead of using system account

一曲冷凌霜 提交于 2019-12-10 18:21:03
问题 I've upgraded to ParseFacebookUtilsV4 and I've updated my login code as such: [PFFacebookUtils logInInBackgroundWithReadPermissions:FACEBOOK_READ_PERMISSIONS block:^(PFUser *user, NSError *error) { ... }]; However, now my app switches to Facebook app for a brief moment and comes back. It uses the native Facebook app to login, while there is still a valid iOS Facebook account in Settings. How can I make PFFacebookUtils v4 use the system Facebook account when available, and only fall back to