facebook-android-sdk

Seem doesn't get Facebook SDK resource when using Facebook Android SDK in IntelliJ IDEA 12

≡放荡痞女 提交于 2019-12-17 17:59:10
问题 According to the article Add facebook SDK to IntelliJ Android project?, I choose to add the " facebook.jar " file as a Module in the " Dependencies " section in the project structure. The compile process works fine. However, when I trying to using "Session Login" to login in facebook, I got the runtime error message like this: 02-06 20:15:56.648: ERROR/AndroidRuntime(5891): FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.facebook.android.R$layout at com.facebook.LoginActivity

Post to facebook after login fails Android

喜欢而已 提交于 2019-12-17 17:23:17
问题 In my postToFacebook() method. I checked if the user is connected if it is i post a link on my wall. When the user is not signed in, The facebook sdk login progress pop up and i login successfully using my credentials. My problem is after login i need to postonWall directly but the postOnWall is not posting to facebook. If i am already login and i post, then it is posted. Any help please. Here is my full postToFacebook code. public void postToFacebook(){ mAsyncRunner = new AsyncFacebookRunner

Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package

拜拜、爱过 提交于 2019-12-17 09:39:54
问题 I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception: java.lang.RuntimeException: Unable to resume activity {dk.imu.konnekt/com.facebook.LoginActivity}: com.facebook.FacebookException: Cannot call LoginActivity with a null calling package. This can occur if the launchMode of the caller is singleInstance. I have search for this error but no one else seems to have had any troble with it. I guess it is because I am using a TabHost and

Set permission for getting User's email ID from Facebook Login

旧街凉风 提交于 2019-12-17 06:06:32
问题 I'm using Facebook 3.0 SDK for android. I have to implement Facebook log in. I'm accessing user's basic info like name, userID. But I want to have access to email also of the user. I have gone through many blogs and forum but cannot figure out how to do that. I'm using my own android button for log in not com.facebook.widget.LoginButton . If I use Facebook log in button it was easy just have to use these lines: authButton.setReadPermissions(Arrays.asList("basic_info","email")); But, I have my

Session.StatusCallback cannot be resolved to a type - Facebook API

与世无争的帅哥 提交于 2019-12-14 03:46:41
问题 I followed the login authentication tutorial on Facebook and have copied the following code into my android application private Session.StatusCallback callback = new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { onSessionStateChange(session, state, exception); } }; However, it is giving me the following errors: Session.StatusCallback cannot be resolved to a type Which is leading to the following errors: callback cannot be

Android Facebook SDK - action.setPlace Error in Custom Stories in Andorid(Feed Dialog Method)

依然范特西╮ 提交于 2019-12-14 03:05:15
问题 I am trying to post a FB Custom story in Android using Open Graph(Share Dialog Method). The code was working very well and posted successfully, until I had added action.setPlace(). Now the Share dialog is appearing correctly. But when I click the 'POST' button, a wierd error message comes as follows "We are Sorry, this post is no longer available. It may have been removed" And in onActivityResult(), I get the following exception "com.facebook.FacebookException: Error publishing message" Here

Sharing to Facebook Stories

*爱你&永不变心* 提交于 2019-12-14 01:26:58
问题 We were able to implement sharing to Instagram Stories, but not to Facebook Stories, following these instructions . Android is not able to find an app for the intent com.facebook.stories.ADD_TO_STORY , despite Facebook app being installed and updated. Has anybody been able to accomplish that? 回答1: It might be too late but i thought to answer it if it can help people who might be facing issues in sharing to instagram without Intent Chooser dialog. Facebook expects us to launch an intent

Open facebook album in facebook app Android with known user iD, album ID and album name

蓝咒 提交于 2019-12-13 15:15:38
问题 I have tried fb://albums fb://album/{%s}?owner={#%s} None of these things work. I just want to open the facebook app with the album opened. 来源: https://stackoverflow.com/questions/17090992/open-facebook-album-in-facebook-app-android-with-known-user-id-album-id-and-alb

Fragment getActivity is always returning null from Async Task

谁说胖子不能爱 提交于 2019-12-13 07:41:41
问题 I have called an AsyncTask inside my fragment . I was calling getActivity() from within doInBackground of that AsyncTask , but getActivity is returning null . If I call getActivity outside from AsyncTask its working properly, but I need instance of activity inside my asyncTask itself. Any help would be appreciated.. !!! 回答1: Pass Activity to AsyncTask method new Demo().execute(getActivity()); public class Demo extends AsyncTask<Activity,Void,Void>{ Activity activity=null; @Override protected

How to send message to feed dialog using facebook sdk in android

爱⌒轻易说出口 提交于 2019-12-13 06:14:00
问题 i am creating an app for share something to facebook. here when i click on a button the feed dialog box will come for sharing, there is a text box for adding message, my need is that i need to send a data to the text box from my code. how can i send it ?? and this is my code to show the feed dialog box. private void showFeedDialog() { Bundle postParams = new Bundle(); postParams.putString("description","message from me "); postParams.putString("link", "https://www.google.com"); WebDialog