c# - Facebook api login success but not return success paper -


i writing windows phone game facebook integrated. have problem.

after logged in right username/password. showed:

"... access public profile...".

and press ok. message:

".... post on behalf".

and ok. navigated m.facebook.com/dialog/oauth/write - blank paper. no success paper or access token returned. debugged again. after logged in, navigated success paper , access token.

my question why? there way skip .... post on behalf message.


this code

private void myweb_loaded(object sender, routedeventargs e)     {         var parameters = new dictionary<string, object>();          parameters["client_id"] = appid;         parameters["redirect_uri"] = "https://www.facebook.com/connect/login_success.html";         parameters["response_type"] = "token";         parameters["display"] = "popup";         parameters["scope"] = extendedpermissions;          uri loginuri = _fbclient.getloginurl(parameters);          this.myweb.navigate(loginuri);     } 

and

private void myweb_navigated(object sender, system.windows.navigation.navigationeventargs e)     {         messagebox.show(e.uri.absoluteuri);         //mytext.text = e.uri.absoluteuri;         facebookoauthresult oauthresult;         if (_fbclient.tryparseoauthcallbackurl(e.uri, out oauthresult))         {             if (oauthresult.issuccess)             {                 accesstoken = oauthresult.accesstoken;                  messagebox.show("login success!\n" + accesstoken);                 navigationservice.navigate(new uri("/testpape.xaml?token="+accesstoken, urikind.relative));             }         }         else         {             // url not result of oauth 2.0 authentication.             return;         }     } 

are there way skip .... post on behalf

you have added permission publish_action/publish_stream while login, that's why it's showing second permission window. if in application, posting feed on users' behalf required permissions granted user; if don't want post anything; can remove permissions.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -