Post to Facebook Facebook from Xamarin

0

Hi, I am with an integration of Facebook with my app following this tutorial link link

I was able to login without major problems, but when wanting to share something on the wall from my app, it is flagged, as if I did not receive a response from Facebook (it happens to me both in my App and in the example download). The code that is executed is:

public Task<bool> RequestPublishPermissions(string[] permissions)
{
_isPermissionsLogin = true;
SimpleLogin();
if (_pTask != null)
{
_pTask.TrySetResult(false);
_pTask = null;
}

_pTask = new TaskCompletionSource<bool>();
LoginManager.Instance.SetLoginBehavior(LoginBehavior.NativeWithFallback);
LoginManager.Instance.LogInWithPublishPermissions(Xamarin.Forms.Forms.Context as Activity, permissions: new List<string> { "publish_actions" });

return _pTask.Task;
}

Did someone have the same problem?

    
asked by Ariel Octavio D'Alfeo 20.04.2018 в 20:15
source

0 answers