facebook-javascript-sdk

Get users zipcode using facebook javascript api

假如想象 提交于 2019-12-11 02:16:00
问题 I am trying to integrate facebook login with my website, Everything works fine but for getting the users zipcode. I would like to get users zip code. Can anyone help me with this. Thanks 回答1: The API does not give you access to information like that any more. AFAIK, it was possible some time ago, to access a user’s address details (with their permission) – but Facebook has since disabled that. Most likely, because the data was misused by advertisers, I’d guess. 来源: https://stackoverflow.com

No callback with FB.ui

╄→гoц情女王★ 提交于 2019-12-11 02:11:28
问题 I can't get the Facebook UI callback to run. I've used the example from the FB dev site: https://developers.facebook.com/docs/reference/dialogs/feed/ FB.init({appId: "YOUR_APP_ID", status: true, cookie: true}); function postToFeed() { // calling the API ... var obj = { method: 'feed', redirect_uri: 'YOUR URL HERE', link: 'https://developers.facebook.com/docs/reference/dialogs/', picture: 'http://fbrell.com/f8.jpg', name: 'Facebook Dialogs', caption: 'Reference Documentation', description:

FB.login Invalid redirect_uri (xd_proxy.php)

送分小仙女□ 提交于 2019-12-11 01:14:38
问题 So, I'm using the Facebook JS SDK, and I keep getting 191: Now, I have checked my settings, and everything seems to be in order. App Domain is set to my base domain (alehunt.com), and "Website with Facebook Login" => "Site URL:" is set to "http://www.alehunt.com". I'm not doing any canvas-related stuff. When looking at the URL for the login dialog window produced by FB.login I'm quite surprised to see that redirect_uri does not point directly to my app, but instead goes via http://static.ak

“Given URL is not permitted by app setting” with JS SDK but not with LoginURL from server side?

别来无恙 提交于 2019-12-11 01:10:04
问题 I'm using Facebook API on a MVC 4 project. By far I've used C# Facebook SDK on the server side, and generated a login url to the client. I'm running my website on localhost (connecting through my internal ip: 192.168.0...) so I've set the app setting (on facebook side) to accept this ip as my domain. Notice I'm using http, but not with standard port 80. I've set facebook app setting to accept my ip with this port. For example: http://192.168.0.2:8080 By far everything worked fine. I manage to

facebook page plugin not working properly

我的未来我决定 提交于 2019-12-10 22:18:02
问题 I need a embedded facebook page plugin. But the code generator of facebook doesn't work. When i give the url of the facebook page, the generator doens't give the code for this page. Also doesn't appear the page in the preview modus. The facebook page is: https://www.facebook.com/Tapas.Enschede/ The code generator is on this page. https://developers.facebook.com/docs/plugins/page-plugin/ For other facebookpages the code generator works perfect. I have no idea what the problem is. I really

Facebook Sharer Can't See OG:IMAGE Tag At First Check

放肆的年华 提交于 2019-12-10 19:48:30
问题 I am trying to share this url via facebook(change RANDOM_STRING with any random string because of facebook cache): http://www.ikposta.com/blog/goster/72/test_RANDOM_STRING at first try facebook will decide picture which is there is a men. Refresh facebook page and try again share with same url at this time picture will be changed and you will see keyboard image which is correct image. og:image tag is always correct why this is happening ? How can I prevent ? 回答1: Run your URL through the

FB.getLoginStatus is returning status 'unknown' even when the user is logged in

自古美人都是妖i 提交于 2019-12-10 19:17:48
问题 I have third party cookies enabled so that's not the problem. I'm using google Chrome, facebook javascript SDk version 2.5 , everything is working the first time when I login, but when I log out and try to log back in, it's returning status: 'unknown' 回答1: Use the following code after logout to resolve the issue: document.cookie.split(";").forEach(function(c) { document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new Date().toUTCString() + ";domain=.example.com;path=/"); });

IE9 Error SEC7111: HTTPS security is compromised after redirect (plus “only secure content” message)

走远了吗. 提交于 2019-12-10 18:47:28
问题 I love it when something is working in other browsers and then ya fire up IE and it all goes poof. I'm getting the following error: SEC7111: HTTPS security is compromised by http://www.example.com/myappname/?rctp=[an FB user id] Here's the workflow: User goes to canvas app on Facebook. Makes choices on form, form submission goes to app's URL on my domain where quick database work is done and redirects back to the app with user id added as a GET variable, which is used to trigger a user

facebook graph api: offset_y offset_x

↘锁芯ラ 提交于 2019-12-10 18:42:42
问题 Hello I am trying to understand what offset_y means in facebooks graph API https://developers.facebook.com/docs/graph-api/reference/cover-photo/. I have tried understanding this related post, but cannot. how to compute Facebook graph api cover offset_y to pixel? For example, this event. https://www.facebook.com/events/1119146318216486/. produces an '"offset_y": 20' when calling the graph api But, the actual offset is -4px: Any help would be greatly appreciated thanks. 回答1: The values for

Facebook login with Torii and Simple-Auth : no authentication data returned

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 16:31:51
问题 I tried to setup a facebook login using Torii and Simple-Auth Torii authenticator. I am using ember-cli. Here is my configuration : // config/environment.js ENV['torii'] = { providers: { 'facebook-oauth2': { apiKey: 'my facebook app id' } } } Here is my login code : // app/controllers/login.js import Ember from 'ember'; import LoginControllerMixin from 'simple-auth/mixins/login-controller-mixin'; export default Ember.Controller.extend(LoginControllerMixin, { actions: { authenticateWithTorii: