facebook-android-sdk

logging in to facebook from my app works on emulator but not on device

廉价感情. 提交于 2019-12-01 01:44:39
问题 This is my code for logging in to facebook. mLoginButton = (LoginButton) findViewById(R.id.login); // restore session if one exists SessionStore.restore(Utility.mFacebook, this); SessionEvents.addAuthListener(new FbAPIsAuthListener()); SessionEvents.addLogoutListener(new FbAPIsLogoutListener()); /* * Source Tag: login_tag */ mLoginButton.init(this, AUTHORIZE_ACTIVITY_RESULT_CODE, Utility.mFacebook, permissions); if (Utility.mFacebook.isSessionValid()) { requestUserData(); } public class

Created New Facebook Application for Android publish permission not working.Used Facebook sdk 3.14.xx and samples

旧巷老猫 提交于 2019-12-01 01:13:23
I am using facebook sdk 3.14(latest updated sdk) and created application for android platform like other old applications which i have added same options and everything. i want to use share photo feature for that I am using below code to add publish_actions permission. but permission is not getting updated or granted. ** I have checked with other old application which i have created last month which is working fine with same code photo sharing and all is working , permissions also getting add. But application which i have created today.with that app id I am not able to add permission for

Facebook sdk 3.0 android

瘦欲@ 提交于 2019-12-01 01:13:03
I have gone through the tutorials on developer.facebook.com for basic hello world facebook app for android countless times to make sure im not making a mistake but I get the error "remote_app_id does not match stored id" but it does match and not sure why it is throwing that error. Also when i run the samples i get a failed binder transaction. Now whats strange is if i uninstall the fb app on my phone and force the user to sign in to facebook the basic hello world app works. Am I doing something wrong or is this a facebook sdk problem. I have already downloaded and reinstalled everything but

Why doesn't Android Facebook interface work with Fragments?

百般思念 提交于 2019-12-01 01:10:34
I'm switching some Android Facebook code from an Activity to a Fragment . Prior to the switch everything worked fine, but now the onComplete() callback is not being executed. Does the Facebook code not work with Fragments , or am I doing something wrong? Here's the original code (in a SherlockActivity ): if (!mFacebook.isSessionValid()) { mFacebook.authorize(MyActivity.this, permissions, new DialogListener() { @Override public void onComplete(Bundle values) { ... } // CALLED AS EXPECTED } } And here's the new code (in a SherlockFragment): if (!mFacebook.isSessionValid()) { mFacebook.authorize

Android : Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider

两盒软妹~` 提交于 2019-12-01 01:04:29
I am stuck for days now. I am using the PhotoShareDialogBuilder in facebook. I used the content provider something like this : <provider android:authorities="com.facebook.app.NativeAppCallContentProvider*****************" android:name="com.facebook.NativeAppCallContentProvider" android:exported="true"/> But, it gives me the error whenever the code gets executed. Someone please help me out. I don't want to use any other api like simple facebook etc. The error i receive in the logcat is : 09-06 13:56:14.575: E/ActivityThread(4202): Failed to find provider info for com.facebook.wakizashi.provider

Using facebook.authorize with the Android SDK does not call onActivityResult

纵饮孤独 提交于 2019-12-01 01:01:00
I'm trying to call the Facebook authorization from my Android activity, but for some reason it never calls the onActivityResult as it should. I followed the official tutorial , and I even created a very simple application just in order to try this functionality: public class SimpleFacebookActivity extends Activity { private EditText console; private Facebook facebook = new Facebook(APP_ID); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.console = (EditText)super.findViewById(R.id.console); this.console.append(

Protecting app secret for extendAccessToken usage

…衆ロ難τιáo~ 提交于 2019-12-01 00:41:41
I'm developing for Android and currently use facebook-android-sdk for authentication. From what I can see there is no use of the app secret in that code which is great. Now that Facebook are going to remove the offline_access permission I need to extend the access token. Unfortunately the sdk's extendAccessToken method isn't stand alone and requires the official Facebook application to be installed which is unacceptable for me. So I decided to implement extendAccessToken directly (similar to the iphone sdk implementation). The problem is the HTTP request for extending an access token requires

Using share dialog in Android Facebook SDK. How to know is user actually shared or cancelled sharing activity?

会有一股神秘感。 提交于 2019-11-30 22:26:46
问题 I have added sharing functionality to Android app as described here https://developers.facebook.com/docs/android/share-dialog/#setup But I have noticed that if user is cancelled sharing activity onComplete is called anyway @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); uiHelper.onActivityResult(requestCode, resultCode, data, new FacebookDialog.Callback() { @Override public void onError

Posting an audio MP3 file through Feed Dialog using Facebook Android SDK

▼魔方 西西 提交于 2019-11-30 21:20:17
问题 I have an Android app and I have implemented sharing through Facebook SDK for Android, I am using Feed Dialog Everything working as written, however, as the content is Audio, I now also want to share MP3 files, just like SoundCloud does. Feed Dialog accepts a "source" parameter, which seems to accept a SWF or MP3 source URL. Feed Dialog feature documentation is here. However, when I embed Source parameter, it do exactly as it says on tin "If both source and picture are specified, only source

Facebook sdk 3.0 android

六眼飞鱼酱① 提交于 2019-11-30 21:07:05
问题 I have gone through the tutorials on developer.facebook.com for basic hello world facebook app for android countless times to make sure im not making a mistake but I get the error "remote_app_id does not match stored id" but it does match and not sure why it is throwing that error. Also when i run the samples i get a failed binder transaction. Now whats strange is if i uninstall the fb app on my phone and force the user to sign in to facebook the basic hello world app works. Am I doing