facebook-apps

Facebook Using code from different domains

烂漫一生 提交于 2019-12-14 03:54:31
问题 I am creating a widget in js that will be implemented across many websites, Facebook requires me to give them "my domain" so they will know that I am verified. The problem is that the widget will be used from many websites, and I am not going to manuly list all of those domains to Facebook. How can I enable my app to work from those different websites using js only? (for the widget) Thanks in advance. 回答1: i use ajax for something similar. i ajax to a php page, and use the php sdk for all the

Facebook: POST userid/apprequest throws an exception (Invitation is sent though)

南笙酒味 提交于 2019-12-13 17:57:18
问题 I am using trying to send app request to friends, My code always throws exception but I see that my friends get the App request. I am confused. Can someone let me know hot to handle the request dialog using rest-fb api? My Code String apprequestCall = "6111349/apprequests"; FacebookClient facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN); try { String appRequest = facebookClient.publish(apprequestCall, String.class, Parameter.with("message", "Santhosh"), Parameter.with("data",

Link to app on Facebook “Sorry, this page isn't available”

守給你的承諾、 提交于 2019-12-13 17:47:48
问题 I have a native mobile iOs app, that shares updates on Facebook. This all works. When a user shares something through the app, you get the following in the Facebook news feed: User X shared a link via My iOS App. You can then click on the "My iOS App which tries to open a URL like "https://www.facebook.com/apps/application.php?id=XXX" That URL shows the error "Sorry, this page isn't available". On the Facebook developer page I see "This app is live" so I'm wondering why the URL isn't working.

Hide the “X friends use this app” message in the auth dialog

∥☆過路亽.° 提交于 2019-12-13 07:36:11
问题 I am developing a FB app where it is very negative to know that none or very few of your friends are using the app at time of installation. Is there a way to hide the "X friends use this app" message in the auth dialog? Thanks 回答1: No, this is not a configurable part of the Auth Dialog 来源: https://stackoverflow.com/questions/11870340/hide-the-x-friends-use-this-app-message-in-the-auth-dialog

Facebook App: How to Remove (or) make expired the previous used Access Tokens?

天大地大妈咪最大 提交于 2019-12-13 06:15:16
问题 I accidentally gave/passed the Access Token (The one i generated from Graph API Explorer) to my friend. Because while i was doing App Development for my Demo-App, i accidentally passed the testing url like: https://graph.facebook.com/me/friends?access_token=XXXXose0cBAJdNvsidbmeGE0cFaqv67nBxNuPjFh2y1E0f8J93K1IlCBYDW49LCfein6hkZBZCKIUmZCTACeovVcVrorrVhP2BScUIujD5Y1wT232ceXXXXXXXXX .. which URL contained the access_token inside. How to make it expired/useless please? 回答1: Unfortunately, simply

how to save facebook access token after success

喜欢而已 提交于 2019-12-13 00:48:34
问题 when user allow my app i receive this type of success url: http://localhost/fbapp/app.php#access_token=AAAAALY8OpPABAM67auStdfgdfOdfgdfgdenqEt9QZCGD2a1h3iWFrhmNWqOf8l4a9RQ8tAJCM9y5QbYpsP6sT1g0ZCXDhtZCECZApGb&expires_in=6604 i am trying $_GET['access_token'] to save access token, but it's not working, i want to know that how to get access token from this url.. 回答1: From your use of $_GET, I'm assuming you are talking about PHP. Unfortunately, hash tags are never sent to the server. They only

App profile page versus m.facebook.com

故事扮演 提交于 2019-12-13 00:46:40
问题 Can this be true, or am I missing something, big time? It seems there's no way to access a Facebook app's profile page on the Facebook mobile site (m.facebook.com)? I thought I wouldn't need to create a separate fan page for my app now that the app's profile page kind of looks and feels like a regular fan page. But if it's not accessible in Facebook mobile, then it's no use to me whatsoever - the thing is, I'm developing a native iPhone app, and the Facebook app is just for sharing the

Facebook fan page app

回眸只為那壹抹淺笑 提交于 2019-12-12 18:16:57
问题 I've built a few facebook apps using the c# sdk. and using code below to check if the user has liked the fan page and showing content to reflect that. protected void Page_Load(object sender, EventArgs e) { if (Session["SignedRequest"] != null) { signedRequest = Session["SignedRequest"].ToString(); } else { signedRequest = Request.Form["signed_request"]; } if (!string.IsNullOrEmpty(signedRequest)) { dynamic SignedRequestData; var DecodedSignedRequest = FacebookWebContext.Current.SignedRequest

Facebook login from App subdomain not working

五迷三道 提交于 2019-12-12 06:22:12
问题 I've set domain.com as one of my Facebook App domains. Facebook website login fails on one of its subdomains with this error message: Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. It's clear that login should be possible from a subdomain of an app domain, what is required to make this happen? 来源: https:/

Facebook auth dialog doesn't show up in page tab

三世轮回 提交于 2019-12-12 04:47:10
问题 The Facebook Auth Dialog won't show up when viewing the app in a page tab (iframe). It works fine when viewing the app externaly though. My Facebook app settings are: Site URL: http://domain.com/test Canvas URL: http://domain.com/test/ Secure Canvas URL: https://domain.com/test/ Page Tab URL: http://domain.com/test/ Secure Page Tab URL: https://domain.com/test/ I've added the app to the page tab ny using the link: https://www.facebook.com/dialog/pagetab?app_id=[MY_APP_ID]&next=https://domain