-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline Access not working #15
Comments
The token looks like this: 102072096507053|91ef4e3a32fbbc6bed1acffc-594308005|uH0gVxpWJFLFV0FC_pdLYGSDMV4 |
are you sure you have "publish_stream" access also? you can see more of these extended permissions from http://developers.facebook.com/docs/authentication/permissions |
Yes I have publish_stream requested as well... |
i just tried with the winforms sample and it works. in btnLogin_Click i changed to the follwing code: FacebookSettings fbSettings = new FacebookSettings and in btnGetMyInfo_Click it works. |
I have the latest code, it worked when I called it with the expiration parameter set to 0: fb.PostToWall("Message to my own wall!", 0) It would not work without the 2nd parameter, I am using an iframe application. |
there are some overloads to PostToWall. and some overloads contains the 3rd parameter called profileId, this is where you want to post to. if you want to post to your own wall. im wondering how you could even compile |
Sorry I meant fb = new Facebook(AccessToken, 0); not 0 for PostToWall, post to wall worked fine when I set the expiration when defining the new Facebook object. |
that constructor was actually written to make it compatible with the original Android SDK written in Java which i ported from. even other methods such as SetAccessExpiresIn for now could u use the another overloaded constructor that passes only access token. i will have a look at the one that passes the expires token. thanks. |
in Facebook.cs line number 123, there seems to be some problem when comparing date and time. that is making it fail when u specify the expires in. i will have a loot at it. if (DateTime.Compare(FacebookUtils.Date.FromUnixTimestamp(AccessExpires), DateTime.UtcNow) > 0) |
It fails when you do NOT specify the expiration. |
for now i have commented out the checking of IsSessionValid on PutObject extension method. (it is a temporary fix.) |
I have offline_access as a permission to request, so I save the AccessToken from FB.AccessToken in my database after verifying the session is valid, but when I use this token from the DB in a call to newFB = new Facebook(accesstoken) and then proceed to do a call such as FacebookExtensions.PostToWall(newFB, "Message to my own wall!") I receive an invalid oauth token error.
The text was updated successfully, but these errors were encountered: