示例#1
0
 public virtual String getAccessTokenRequestUrl(FacebookAppInfomation appinfo, string code)
 {
     return("https://graph.facebook.com/oauth/access_token?client_id=" + appinfo.AppId + "&redirect_uri=" + appinfo.RedirectLink + "&client_secret=" + appinfo.AppSecret + "&code=" + code);
 }
示例#2
0
 public virtual String getLoginUrl(FacebookAppInfomation appinfo)
 {
     return("https://m.facebook.com/dialog/oauth?client_id=" + appinfo.AppId + "&redirect_uri=" + appinfo.RedirectLink + "&scope=" + appinfo.RequirePermission + "&display=touch" + "&skip_api_login=1");
 }
示例#3
0
 public virtual String getFeedUrl(FacebookAppInfomation appinfo)
 {
     return("https://m.facebook.com/dialog/feed?app_id=" + appinfo.AppId + "&display=touch&link=https://pine-entertainment.com&redirect_uri=" + appinfo.RedirectLink);
 }
示例#4
0
 public virtual String getAccessTokenExchangeUrl(FacebookAppInfomation appinfo, string accessToken)
 {
     return("https://graph.facebook.com/oauth/access_token?client_id=" + appinfo.AppId + "&client_secret=" + appinfo.AppSecret + "&grant_type=fb_exchange_token&fb_exchange_token=" + Token);
 }