Reputation: 51
When my user is a tester I can get their posts with no trouble but when the user is not no posts are returned. The code is in different places in the application. Here is some of the code
Facebook facebook = new FacebookFactory().getInstance();
facebook.setOAuthAppId(FBConnection.FB_APP_ID, FBConnection.FB_APP_SECRET);
String commaSeparetedPermissions = "email,publish_stream,user_posts";
facebook.setOAuthPermissions(commaSeparetedPermissions);
String authFB = facebook.getOAuthAuthorizationURL(FBConnection.REDIRECT_URI);
...
name = facebook.getMe().getName();
Reading r = new Reading().fields("message", "picture");
ResponseList<Post> posts = facebook.getPosts(r);
In other code I successfully obtain an extended token which calculates to about 2 months. In the user's facebook settings->apps->thisapp->timelineposts->your posts is ticked.
However the posts object has null count and zero elements.
I'm at a loss to understand why.
Upvotes: 0
Views: 138