facebook-javascript-sdk

Error/blank page with Chrome and Safar browser apps for iphone when using javascript FB login code

佐手、 提交于 2019-12-08 12:20:43
问题 UPDATE: This issue is affecting both Chrome and safari browser apps. I'm trying to use Facebook login (Javascript/Parse) on my site with the following code. It works fine in the PC browser. Issue with Chrome app Error, unsupported Browser: Google Chrome for iOS does not support this feature. Please use Safari and try again It stops on the follwing url (Ive changed sensitive data to XXXX). https://m.facebook.com/dialog/oauth?app_id=XXXX&client_id=XXXX&display=touch&domain=kudosoo.com&e2e=%7B

Spoofing facebook app ID

柔情痞子 提交于 2019-12-08 12:19:00
问题 Following up on the design outlined in Design for Facebook authentication in an iOS app that also accesses a secured web service, and specifically the concern listed in https://stackoverflow.com/a/12912616/5154090: what would be the mitigation? Specifically, I have a web server that exposes a REST API which is consumed by a mobile app. I'd like users to authenticate to the server (via the app) using Facebook. Now, an apparently common flow is for the app to redirect the user to Facebook,

Login with Facebook C#

余生长醉 提交于 2019-12-08 10:23:02
问题 I have an infinty loop of refresh when I try to log in with facebook on my site , I have declared a script afer the the body tag that was <script> window.fbAsyncInit = function () { FB.init({ appId: '337323336385***', // App ID status: true, // check login status cookie: true, // enable cookies to allow the server to access the session xfbml: true // parse XFBML }); // Additional initialization code here FB.Event.subscribe('auth.authResponseChange', function (response) { if (response.status =

How to set default audience when Facebook App login?

…衆ロ難τιáo~ 提交于 2019-12-08 08:01:21
问题 I make an Photo Sharing App on facebook; It's use #myAppSharing to search Photo people share by app. It's running now but I can't find any photo with hashtag #myAppSharing. Because when user login with FB Auth2.0, app ask permision; and set default audience to "Friend". So, I can't search #myAppSharing in public. How do I set default audience to "Public"? note: I use Javascript SDK like this: FB.login(function(response){ console.log(response); switch (response.status) { case 'connected':

Facebook does not show thumbnail when a photo is shared

强颜欢笑 提交于 2019-12-08 07:48:58
问题 I am using the following code to share images on facebook but when the dialog box is shown it does not show the image and once it is uploaded facebook just shows a link to image. <a name="share" type="button" href="https://www.facebook.com/sharer.php?u=www.example.com/myimage" target="_blank">share</a> 回答1: Facebook doesn't support sharing of plain images, only hyperlinks can be shared. Try posting the same image's link on your profile as status. Facebook won't show you any thumbnail for it

Can't get 'edge.create' callback to work with facebook javascript SDK

混江龙づ霸主 提交于 2019-12-08 07:35:52
问题 I'm trying to use the 'edge.create' callback function of the Facebook javascript SDK to send an alert when a user clicks the like button on a page. Ultimately my goal is to have it regenerate styles on the page so that it can resize the facebook widget div dynamically when clicked. I cannot get the callback to work even for the alert though. <html lang="en"> <head> <title></title> <script src="http://connect.facebook.net/en_US/all.js#appId=216985861663967&xfbml=1"></script> <script> FB.Event

Facebook Javascript SDK Security. How do Facebook verify that the JS SDK is loaded in the right domain that specified in the app settings

坚强是说给别人听的谎言 提交于 2019-12-08 06:52:02
问题 There are few questions with same name but none of them intended to ask what I have in my mind. So we initialize FB js sdk with only app id. It's easy to know other web site's app id by looking at their facebook initialization source code. One might think that it's possible that a hacker might try to initialize FB JS SDK with other's app id and try to get their user access tokens. But facebook doesn't allow such stuff. You have to load js sdk from the same domain you specified in the site url

Facebook app configuration for Firefox os(packaged app)

☆樱花仙子☆ 提交于 2019-12-08 06:31:41
问题 I am developing a firefox os packaged app. For my app what will be the values of red marked portions. Please see the following picture. 回答1: I think you should be able to put the URL of your application if it's a hosted one or the URL of your website for App Domains. As for the platform, choose the website. Let me know if it's working. 来源: https://stackoverflow.com/questions/22781623/facebook-app-configuration-for-firefox-ospackaged-app

having trouble sending facebook notification via ajax call to php

六眼飞鱼酱① 提交于 2019-12-08 05:15:47
问题 In my javascript I have a click event that triggers an ajax call to the php page where I send my notification from. I chose to do it this way because the documentation advises against using your app secret in any client side code, and the notifications parameters requires an access token that you can only get using the app secret. The problem I'm having is that even though I'm logged in, $facebook->getUser() is returning 0 in php, so the api call I make afterwards to send the notification

Detect changes to the Facebook session

末鹿安然 提交于 2019-12-08 04:30:00
问题 The look of my site depends heavily on whether the user is logged in via Facebook and resultantly, it is very important for me to detect any changes in the Facebook Session as soon as they occur in order for me to adapt the look of the page to reflect the users login status. I hate using intervals and timeouts for this sort of code as things can get really messy, but it appears to be the only option (to the best of my knowledge). I have tried using the FB.subscribe(auth.statusChange) , but