I am currently using thus url to test the Facebook graph API and get my page feed to display it in my application: DOC: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed
https://graph.facebook.com/PAGE_ID/feed?access_token=APP_ID|APP_TOKEN (all ID obfuscated but I can share them and create a new app id needed)
So, this feed is working fine and gives me the JSON output I need:
{
data: [
{
id: "blahblah",
from: {
category: "Industrials",
name: "blahblah",
id: "blahblah"
},
message: "blahblahhttps://www.blahblah.com/",
picture: "https://fbexternal-a.akamaihd.net/safe_image.php?blahblah.jpg",
link: "https://www.blahblah.com/",
name: "Home",
caption: "blahblah",
description: "blahblah.",
icon: "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
privacy: {
value: ""
},
type: "link",
status_type: "shared_story",
created_time: "2015-01-21T12:30:37+0000",
updated_time: "2015-01-21T12:30:37+0000",
shares: {
count: 2
},
likes: {
Proble is that I want to use exactly the same feature, but instead of parsing JSON, I would like to use Facebook SDK.
This is my current code:
new Request(
null,
"/PAGE_ID/feed?access_token=APP_ID|APP_TOKEN",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
Log.e("CVE","MESSAGE: "+response.getError().getErrorMessage());
}
}
).executeAsync();
But this method gives me some authentification issues.
I get the response: "Invalid OAuth access token signature"
Any idea what is wrong and if I have to use the HTTP request instead of Facebook SDK?