Note that there are some explanatory texts on larger screens.

plurals
  1. POWebDialog share post on Facebook when user removes app from settings
    primarykey
    data
    text
    <p>Hi I have problem with Facebook:</p> <p>Case:</p> <p>1.User has no Facebook app.</p> <p>2.User logins into Facebook via WebDialog</p> <p>3.User gives all permissions for share, and shares post</p> <p>4.User enters Facebook account, than into applications, and removes my app.</p> <p>5.User tries to make share again.</p> <p>6."Unknown error. Please try again later" Appears in WebDialog.</p> <p>Is there a way to fix this case? I found that using ShareDialog i can avoid this problem when user has facebook app installed, but I don't know how to solve it if user has no fb app on his phone.</p> <p>To show dialog I verify:</p> <pre><code> private boolean checkFacebookLogin(){ Session session = Session.getActiveSession(); if(session!=null &amp;&amp; session.isOpened() ){ return true; } return false; } </code></pre> <p>Than i ask for permissions if they are needed:</p> <pre><code> private void performPublish() { Session session = Session.getActiveSession(); pendingAction = PendingAction.POST_STATUS_UPDATE; if (session != null &amp;&amp; mCurrentActivity!=null) { if (hasPublishPermission()) { // We can do the action right away. handlePendingAction(); } else { // We need to get new permissions, then complete the action when we get called back. session.requestNewPublishPermissions(new Session.NewPermissionsRequest(mCurrentActivity, PERMISSIONS)); } } } </code></pre> <p>In the end i show WebDialog:</p> <pre><code> WebDialog feedDialog = ( new WebDialog.FeedDialogBuilder(mCurrentActivity, Session.getActiveSession(), postParams)) .setOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(Bundle values, FacebookException error) { } }) .build(); feedDialog.show(); </code></pre> <p>After showing WebDialog, it redirects to error page with "Unknow error [...]" text, i have found no error information, so I don't even know that something goes wrong.</p> <p>I tried HelloFacebookSample, but there if user has no facebook app, he can't edit post in facebook dialog. I want to see Facebook dialog in both cases ( with/without fb app installed).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload