facebook-sdk-3.0

Facebook SDK + CodeIgniter sessions

感情迁移 提交于 2019-12-11 06:58:04
问题 I'm using CodeIgniter's built in session class, and therefore I don't want the Facebook SDK to start it's own session (by session_start() and using the $_SESSION variable). Is there any way to prevent the SDK from using native sessions and if, how do I make it utilize the CodeIgniter session class instead? Is it even possible? 回答1: This is pretty late but just in case someone else runs into the same issue. Just implement the PersistentDataHandler in a custom class as stated here: https:/

How to tag friends in a wall post using facebbok sdk in android?

拟墨画扇 提交于 2019-12-11 06:22:28
问题 I am trying to tag one friend in my wall post. But this 'tags' parameter isn't working. How can i tag one/more friends? Pls help me. Thank you in advance. Bundle params = new Bundle(); params.putString("tags", tagged_friends_id); WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this, Session.getActiveSession(),params)) .setOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(Bundle values, FacebookException error) { if (error == null) { final String postId =

Logout from facebook in iOS app

纵然是瞬间 提交于 2019-12-11 05:42:38
问题 I am creating a simple iOS App that Login to facebook, Fetch self and friends details, Logout from facebook. Now Login from Facebook and Fetching self & friends details is working ok, but I am not able to logout fully from facebook. Whenever I logout and then Login back - I see the Authorization screen instead of Authentication Login screen of Facebook (of Web). Below is my code - can you please see if there is something wrong in the steps I have performed from Login, to Fetching self &

Facebook Login for Android Studio library import dx.bat Failed

非 Y 不嫁゛ 提交于 2019-12-11 04:49:39
问题 I'm currently trying to import the facebook libraries on my project by following this steps from facebookdevelopers wherein they provided a step by step process on how to add the facebook library. Everything goes smoothly until I run my project and got the error: Gradle: Execution failed for task ':Echo:dexDebug'. > Running C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat failed. See output I'm sure that I followed the steps but I think something is not going

Android how to get email from facebook sdk

喜你入骨 提交于 2019-12-10 12:15:17
问题 I need to get the email of the user using android Facebook sdk, I think it is something in the asMap but it seems it couldn't, I tried this Session.openActiveSession(this, true, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { // TODO Auto-generated method stub if (session.isOpened()) { // make request to the /me API Request.executeMeRequestAsync(session, new Request.GraphUserCallback() { @Override public void onCompleted

AccessToken token:ACCESS_TOKEN_REMOVED in Facebook Android SDK

老子叫甜甜 提交于 2019-12-09 05:04:39
问题 I am using the Facebook SDK but I want to create the photo album but I am getting ACCESS_TOKEN_REMOVED in the session. Getting this in session {Session state:OPENED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[read_stream, manage_friendlists, read_mailbox, status_update, photo_upload, video_upload, sms, create_event, rsvp_event, email, xmpp_login, create_note, share_item, publish_stream, ads_management, read_insights, read_requests, manage_notifications, read_friendlists,

Sign out from google and facebook in android application

我的未来我决定 提交于 2019-12-09 04:13:43
问题 I have integrated google and facebook sign up using their respective methods. But after successful signing, I want to open different activity and similarly user can go to various different activities. I have used action bar where I am giving an option to sign out from either of the account that the user has logged in. How could I sign out the user when I am in different activity then the main activity. I am getting an exception and I am not able to pass apiclient reference (for google) and

Facebook Marketing API: Potential reach of a Facebook campaign

非 Y 不嫁゛ 提交于 2019-12-08 13:13:27
问题 We can run Facebook advert using python SDK. I want to know the potential reach of target audience. Is there any command available or any other way? 回答1: To get the Reach Estimates of a targeting specification using ad account. account = AdAccount('act_<AD_ACCOUNT_ID>') targeting_spec = { 'geo_locations': { 'countries': ['US'], }, 'age_min': 20, 'age_max': 40, } params = { 'currency': 'USD', 'optimize_for': AdSet.OptimizationGoal.offsite_conversions, 'targeting_spec': targeting_spec, } reach

Error on exported apk - FacebookSDK

北城以北 提交于 2019-12-08 04:30:03
问题 So, I have this app and several activitys do querys an external database via Asynk Task and with the results it populates the layout. So far so good, it all worked fine until I exported the app. After I sign exported the app it started crashing at this activity that uses the facebook sdk ( and it's the only one who does ). from the json String it gets a name and with the facebook sdk it posts a link on facebook that in the description has that name. ( I don't know if the problem is here but

Facebook login in IOS works on emulator but not on device with native app installed

孤街浪徒 提交于 2019-12-08 01:16:38
问题 Facing the following problem: need to perform Facebook login in IOS 7. The thing goes right on the emulator but when running it on device with native app installed, the session give not permission to perform the login. Using the code to create session: The checarLogin method works like: I have googled to find it and figured out that the device settings that control the permissions of Facebook app works differently in the two cases: Emulator give the permission with no issues: The following