facebook-sdk-3.0

Facebook UNITY SDK login issue

泄露秘密 提交于 2019-11-28 14:34:27
I just installed the new version of Unity 4.3 and the new facebook sdk and I can't get it working. I created the app on facebook, copied over the app id to the unity facebook settings as required and copied the Package Name and Class name back to facebook. Because the Android Key Hash is empty ( even it shouldn't be ) I used the methods posted by others to create one with openssl. I created it and copied over to facebook as required. After this I created a small script to be able to login. // Use this for initialization void Start () { enabled = false; FB.Init(SetInit, OnHideUnity); } //

Facebook SDK 3.7 for Android request email permission

拟墨画扇 提交于 2019-11-28 11:48:29
I am using Facebook SDK for Android to allow users to register and use app. I want to get some basic info about user like user name and email. Anyway, I have problem because I get null pointer exception when trying to get user email. String email = user.getProperty("email").toString(); I assuming that I get this error because I did not request for email permission. How I can do that? Here is the full code : public class RegisterActivity extends ActionBarActivity{ Button btnFacebook; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

How to post Bitmap to facebook using facebook sdk?

Deadly 提交于 2019-11-28 11:15:37
问题 I don't find a correct solution to post an image to my facebook wall using facebook sdk. On stackOverflow I found the following solution but AsyncFacebookRunner and mAsyncRunner.request are deprecated and they don't work. private Facebook facebook; @SuppressWarnings("deprecation") public void shareImg(View v) { System.out.println("ciao"); Bitmap img = albero.getDrawingCache(); if (img != null) { byte[] data = null; Bitmap bi = img; ByteArrayOutputStream baos = new ByteArrayOutputStream(); bi

Facebook UNITY SDK login issue

懵懂的女人 提交于 2019-11-27 19:37:08
问题 I just installed the new version of Unity 4.3 and the new facebook sdk and I can't get it working. I created the app on facebook, copied over the app id to the unity facebook settings as required and copied the Package Name and Class name back to facebook. Because the Android Key Hash is empty ( even it shouldn't be ) I used the methods posted by others to create one with openssl. I created it and copied over to facebook as required. After this I created a small script to be able to login. //

Facebook SDK 3.7 for Android request email permission

↘锁芯ラ 提交于 2019-11-27 06:32:23
问题 I am using Facebook SDK for Android to allow users to register and use app. I want to get some basic info about user like user name and email. Anyway, I have problem because I get null pointer exception when trying to get user email. String email = user.getProperty("email").toString(); I assuming that I get this error because I did not request for email permission. How I can do that? Here is the full code : public class RegisterActivity extends ActionBarActivity{ Button btnFacebook; @Override

Facebook sdk get users phone number or Address?

☆樱花仙子☆ 提交于 2019-11-27 05:15:42
I think i dug through the whole facebook sdk documentation but can't seem to find the way to get the users Phone number or Address. Is this feature removed, as of spoken in this thread where it's suggested it will be re-enabled in a few weeks (2011). This information is not available via the Facebook APIs and will not be added anytime soon. If you want this information from the user you should prompt them for it after they have logged into your application using Facebook. Here's a link to Facebook's APIs: https://developers.facebook.com/docs/reference/api/user/ You can use the graph API

iOS Facebook SDK Error Domain com.facebook.sdk Code 2 and Code 7

落爺英雄遲暮 提交于 2019-11-26 21:51:14
问题 I am developing the application which allow user to login via Facebook (using Facebook SDK for it). The error appears when a user has already logged in Facebook in iPhone settings. If not - all work correctly. NSArray *permissions = [[NSArray alloc] initWithObjects:@"email", nil]; [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:YES completionHandler: ^(FBSession *session, FBSessionState state, NSError *error) { [self fbSessionStateChanged:session state:state error