Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you need to put <strong>apprequests</strong> to the <code>WebDialog.RequestsDialogBuilder</code>.</p> <p>This is how I use it:</p> <pre><code>dialog = new WebDialog.Builder(activity, Session.getActiveSession(), "apprequests", params). setOnCompleteListener(new WebDialog.OnCompleteListener() { @Override public void onComplete(Bundle values, FacebookException error) { if (error != null &amp;&amp; !(error instanceof FacebookOperationCanceledException)) { // error } else { // good } dialog = null; } }).build(); Window dialogWindow = dialog.getWindow(); dialogWindow.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); dialog.show(); </code></pre> <hr> <p>Or, in addition, you can use this <code>SimpleFacebook</code> library that makes the life much easier by working with more simpler API than Facebook SDK 3.0. This library wraps the Facebook SDK 3.0:</p> <ul> <li><a href="https://github.com/sromku/android-simple-facebook" rel="nofollow">https://github.com/sromku/android-simple-facebook</a></li> </ul> <p>And this is how to invite by using this library:</p> <pre><code>OnInviteListener onInviteListener = new SimpleFacebook.OnInviteListener() { @Override public void onFail() { // insure that you are logged in before inviting Log.w(TAG, "Failed to invite"); } @Override public void onException(Throwable throwable) { Log.e(TAG, "Bad thing happened", throwable); } @Override public void onComplete() { Log.i(TAG, "Invitation was sent"); } }; mSimpleFacebook.invite(MainActivity.this, "I invite you to use this app", onInviteListener); </code></pre> <p>Hope, I could help you.</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.
 

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