Forum Libraries, Components, and Plugins
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Problem with Xamarin Social and Facebook Share IOS


I'm trying to share a link in IOS

var facebook = new FacebookService {
    ClientId = "FacebookAppId"

// 2. Create an item to share
var item = new Item { Text = "text" };
item.Links.Add (new Uri (""));

// 3. Present the UI on iOS
var shareController = facebook.GetShareUI (item, result => {
    // result lets you know if the user shared the item or canceled
    DismissViewController (true, null);
PresentViewController (shareController, true, null);

I connect my facebook account but when I click the "Send" button I receive:

Share Error
The remote server returned an error: (403) Forbidden

(this app was working some weeks ago, the problem is with 1.0.2 and 1.1 of Xamarin.Social)

Thank you


  • SandeepkumarSandeepkumar USMember ✭✭

    I am currently using the Xamarin.Social component in xamarin forms and when I try to post to twitter, it gives me an error stating: Share Error: The remote server returned an error: (403) Forbidden.
    please help me.
    thanks in advance

  • SandeepkumarSandeepkumar USMember ✭✭

    Sometimes it work right but sometime it show Error: The remote server returned an error: (403) Forbidden. please help me. thanks in advance

  • TeoTeo DKMember ✭✭

    I am using Xamarin Forms, and I implemented a custom renderer in order to share a link on FB. I am asked to log in, and I get to the page where I put my link/text. However, when I click Send, I get an:

    Share error The remote server returned an error: (403) Forbidden

  • AndreaBeberAndreaBeber ITMember

    Do you has resolved? I have the same problem

  • SandeepkumarSandeepkumar USMember ✭✭

    The remote server returned an error: (403) Forbidden.

    This error used when requests are being denied due to update limits.

  • uwantfriesuwantfries GBBeta ✭✭


  • uwantfriesuwantfries GBBeta ✭✭

    I was getting a 403 using Xamarin.Social when posting to Facebook to a new test App (Create app - create test of that app)
    It seems the permissions returned after authorization were not populated correctly as we were asking for publish_stream scope which AFAIK seems to have been deprecated/broken

    I think the line in FacebookServices.cs should be:

    Scope = "publish_actions"; // was "publish_stream"; if I use public stream then it just defaults to read-only

    This fix seemed to work for me but reading the forums older apps may still support publish_stream

  • avunomaavunoma USMember

    Hi Steve ,

    I used Scope = "publish_actions"; as you said ...
    But it is not working..Could you please help on this.

  • AshikkAAshikkA USMember

    did anyone get a solution for this?

  • VincentCheahVincentCheah MYMember

    Same here ... Error message

    Share Error
    The remove server returned an error: (403) Forbidden.

    Did anyone get a solution for this?

  • Hallo!
    Has anyone found a solution for this problem?

  • TekigoTekigo FRMember

    Hi, we've been in the same situation and here's how we fix it.

    As Steve Keane said, you have to request the "publish_actions" item with myFacebookService.Scope = "publish_actions";
    In order to make it work, you have to log in (in your simulator, just reset the content, and it will ask you again).

    Then, you have to edit your Facebook app in the Facebook dashboard and add the "publish_actions" items to submission in "Status & Review" tab then follow the procedure.

  • mss.6936mss.6936 USMember

    In the twitter the remote server returned an error: (403) Forbidden. comes when you re tweet the post.

Sign In or Register to comment.