facebook-access-token

iOS 6 Facebook Login not refreshing access token

删除回忆录丶 提交于 2019-12-01 09:29:30
Nothing I'm reading (many FB dev articles and SO question) is helping, so I thought I'd post here. I'm trying to get this all to work with iOS 6 and Facebook SDK 3.1.1. I've got a pretty basic setup: My iOS app authenticates with Facebook, I pass the access_token to my server and the user is now logged into my app. The only other thing they can do related to facebook is post something to their wall. I'm using the legacy Dialog window so the user can add their own comments. Everything works perfectly on a new install for the first hour or so. If the user is logged in via the iOS Settings app,

Facebook API friends who use same app android

只谈情不闲聊 提交于 2019-12-01 08:22:35
I have a code the retrieves all friends from facebook api , but i would like to get only the facebook friends who use application. i tried fb.request("me/friends?fields=installed"); but never worked do i need extra permission ? Heres my code: jsonUser = fb.request("me/friends"); friendObj = Util.parseJson(jsonUser); friendArray = friendObj.getJSONArray("data"); friendlist = new ArrayList<String[][]>(); String[][] friendsToList = new String[1][2]; int friendCount = 0; String fId, fNm; JSONObject friend; for (int i = 0;i<friendArray.length();i++){ //Get a JSONObject from the JSONArray friend =

Facebook API friends who use same app android

谁说胖子不能爱 提交于 2019-12-01 06:55:33
问题 I have a code the retrieves all friends from facebook api , but i would like to get only the facebook friends who use application. i tried fb.request("me/friends?fields=installed"); but never worked do i need extra permission ? Heres my code: jsonUser = fb.request("me/friends"); friendObj = Util.parseJson(jsonUser); friendArray = friendObj.getJSONArray("data"); friendlist = new ArrayList<String[][]>(); String[][] friendsToList = new String[1][2]; int friendCount = 0; String fId, fNm;

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

Making Page Access Tokens Never Expire With 2016 Facebook SDK?

天大地大妈咪最大 提交于 2019-12-01 00:27:39
The application we are building is both an iOS and Android mobile app that pairs high school students with nonprofits to help manage their Facebook pages. We assign each student to one nonprofit, make them an administrator of their Facebook page, and allow them to create posts on behalf of the organization to reach new audiences. Each student is then given a score that comprises of the likes, comments, shares, etc. garnered by the student's posts on the page. The trouble we are having is with the Facebook Graph API. We need someone familiar with the current Facebook SDK that can help us devise

Explain the Facebook access_token

房东的猫 提交于 2019-11-30 21:28:39
This whole Facebook access_token thing is driving me nuts. All I want to do is fetch a user's public Facebook posts. It used to work by simply doing: $.getJSON('http://graph.facebook.com/USERNAME/posts?limit=LIMIT&callback=?', function (posts) { // Posts available in "posts" variable }); But now I get the "access_token required" error. Trust me; I've checked the docs, Googled all over and checked similar questions on SO but I'm really hoping there's a more straight forward way of doing this than what I've seen. Do you really have to create a Facebook App (I don't even have an account), make

Protecting app secret for extendAccessToken usage

老子叫甜甜 提交于 2019-11-30 19:10:06
问题 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

Explain the Facebook access_token

混江龙づ霸主 提交于 2019-11-30 17:29:42
问题 This whole Facebook access_token thing is driving me nuts. All I want to do is fetch a user's public Facebook posts. It used to work by simply doing: $.getJSON('http://graph.facebook.com/USERNAME/posts?limit=LIMIT&callback=?', function (posts) { // Posts available in "posts" variable }); But now I get the "access_token required" error. Trust me; I've checked the docs, Googled all over and checked similar questions on SO but I'm really hoping there's a more straight forward way of doing this

Get access token to facebook page - WPF

∥☆過路亽.° 提交于 2019-11-30 16:24:28
I am developing a WPF application that needs post on wall of a facebook's Page, and this without login window. Well, I want to get access token for my facebook page, and this is my code. var fb = new FacebookClient(); string token = ""; dynamic accounts = fb.Get("/"<USER_ID>"/accounts"); foreach (dynamic account in accounts) { if (account.id == <PAGE_ID>) { token = account.access_token; break; } } But I receive a error #104. It is a simple error, that I need a access token to do this operation. Then I use other code to get the user access token var fb = new FacebookClient(); dynamic result =

Get access token to facebook page - WPF

只愿长相守 提交于 2019-11-30 16:14:28
问题 I am developing a WPF application that needs post on wall of a facebook's Page, and this without login window. Well, I want to get access token for my facebook page, and this is my code. var fb = new FacebookClient(); string token = ""; dynamic accounts = fb.Get("/"<USER_ID>"/accounts"); foreach (dynamic account in accounts) { if (account.id == <PAGE_ID>) { token = account.access_token; break; } } But I receive a error #104. It is a simple error, that I need a access token to do this