- Home /
Getting 403 Forbidden error when trying to post to FB wall
I am trying to post a pre-defined message to the user's wall. I have the user log into facebook with these permissions: "basic_info,publish_actions,publish_stream"
. The debug statement in callback returns a "403 Forbidden" error. I am unsure why.
NOTE: My App page on Facebook developers does not have publish_actions or publish_stream. I am trying to get it approved for use, but they need an example of it working first. Not sure how I can make it work if I don't have the permission :/.
Unity 4.3.4f1 Facebook SDK 5.1.0
Below is my code:
private void CallFBFeed2(){
WWWForm wwwForm = new WWWForm();
wwwForm.AddField("message", "test");
//wwwForm.AddField("access_token", FB.AccessToken);
FB.API("/me/feed", Facebook.HttpMethod.POST, Callback, wwwForm);
}
void Callback(FBResult result)
{
if (!String.IsNullOrEmpty(result.Error)){
Debug.Log("Error Response:\n" + result.Error);
}else
{
Debug.Log("Success Response:\n");
}
}
Answer by greenearth2 · Jun 26, 2014 at 04:26 AM
Turns out it needs to be triggered by the app first. Make a build on android or iOS, and try it. It should work. After that, it will work in the Unity editor.
Answer by Jeff-Kesselman · Jun 26, 2014 at 12:34 AM
A 403 Forbidden error is a permissions error from Facebook.
You need to ask them why you are getting it.
Answer by Santosh Patil · Jun 26, 2014 at 04:36 AM
Your app might be in SANDBOX mode, make this app public and available to all users.
Your answer
![](https://koobas.hobune.stream/wayback/20220613152523im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Facebook Post to wall FB.Feed issue in Unity Facebook SDK 1 Answer
crossdomain.xml not working with ssl and facebook canvas 1 Answer
Error using Facebook API to get user's birthday (given key not present in dictionary) 1 Answer
How to use YoLo AR screenshots Share facebook 0 Answers
Facebook SDK FB.API post screenshot with user's message 0 Answers