facebook-javascript-sdk

Can't find my app on facebook insights?

混江龙づ霸主 提交于 2019-12-22 18:09:38
问题 I'm running a site using social plugins, so I created a facebook app then I want to use facebook insight to connect my website and app (ps. I also add app_id or meta in header) but I can't find the app I create in the connect list does anyone has a clue what's going on?? 回答1: It appears to be a Facebook caching issue - the UI is simply not refreshing and providing the new app options. However you can still submit the request with the required app id manually. I used firebug to inject my new

&makeprofile=1 parameter no longer works

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 16:34:20
问题 I made several apps that invited the user to create pictures, uploaded them to facebook and then sent them to a link on facebook that allowed them to set them as their profile picture: https://www.facebook.com/photo.php?fbid=10152753169290428&makeprofile=1 In the last few days, facebook is just ignoring the makeprofile parameter. I just love developing for facebook, it's such a roller coaster ride. Can anyone help? Is there an alternative? 回答1: You can redirect to the mobile URL like: http:/

Cannot log into Facebook via ngFacebook on angularjs app

余生长醉 提交于 2019-12-22 12:54:34
问题 I'm trying to set up log in via ngFacebook and I am unable to log in to facebook. I cannot even get anything to console log after calling '$facebook.log()'. My angular app: 'use strict'; angular .module('fmcFrontendApp', [ 'ngAnimate', 'ngCookies', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ngFacebook' ]) .config(function ($facebookProvider) { $facebookProvider.setAppId('///////////'); $facebookProvider.setCustomInit({ version: 'v2.2', channelUrl : '/index.html', xfbml : true });

FB.ui Facebook share doesn't work on posts?

冷暖自知 提交于 2019-12-22 12:37:05
问题 When I call the action, FB.ui({ method: 'share', // this works fine href: 'https://www.facebook.com/' // this works fine href: 'https://www.facebook.com/678506978/' // this doesn't href: 'https://www.facebook.com/678506978/posts/10152685321776979' }); More specifically, the window pops up alright, but it's just a blank share window, with nothing beneath to show what I'm sharing. And after I clicked Post to Facebook , it doesn't appear in my timeline, unlike the former two. My question: how to

Access Facebook Session using PHP

筅森魡賤 提交于 2019-12-22 10:32:00
问题 I am struggling to keep the Facebook session alive using PHP on my website. I use both the JavaScript SDK and the PHP SDK to form the basis of my app. The problem I am having is that when the "Facebook session" ends, my PHP script believes that you are logged out of Facebook. But, as soon as I call the FB.init() using the JavaScript SDK, the session comes back to life. Is there anyway to achieve the same using the PHP SDK? Or can I set a custom expiry time on the Facebook session? Extracted

The channel file and CDN

做~自己de王妃 提交于 2019-12-22 09:56:45
问题 My main javascript (and so all the static content) is included from https://static.anuary.com . The URL that user is browsing is https://dev.anuary.com/somepath/ . Where does the channel file need to be, dev.anuary.com or static.anuary.com ? At the moment it is http://static.anuary.com/channel.html. I am asking because I am still getting the error that says: Unsafe JavaScript attempt to access frame with URL https://www.facebook.com/dialog/oauth?access_token=[..]&api_key=[..]&app_id=[..]

Facebook JavaScript API for google chrome extension

╄→гoц情女王★ 提交于 2019-12-22 08:25:38
问题 I make a chrome extension to like specific page posts automatically. With a simple popup controller and background thread to handle fb api interactive I cannot load facebook js api into extension page with official example method. The script jssdk was loaded and executed checked by chrome developer tools. But window.FB is not defined by script loaded!!! I also add script tag manually. It appeared both background thread and popup window. If inject with iframe to load page, it will success

Can non-game app use FB apprequests dialog in FB v2

那年仲夏 提交于 2019-12-22 08:08:02
问题 In FB api v2.0+, can non-game app use apprequests https://developers.facebook.com/docs/games/requests/v2.2#implementation? I tested that our app which is categorized as shopping app seems to be able to use apprequests without problem when switching to FB v2.1, however on the link of https://developers.facebook.com/docs/games/requests/v2.2#implementation, it says "Requests are available for games on Canvas, iOS or Android.". Why my test shows apprequests api works for FB v2 for my shopping app

Force links to open outside facebook's inapp browser

痞子三分冷 提交于 2019-12-22 06:02:01
问题 Facebook updated it's mobile app and created an in-app browser and as they say it's more faster. The problem is that any link of any page opens inside this browser. I tried a lot of combinations without luck... Some examples are bellow. Did anyone knows more about it and how to forece links to open on external browsers? <script> function externalLinks() { for(var c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) { var b = c[a]; b.getAttribute("href") && b.hostname !== location

Force links to open outside facebook's inapp browser

◇◆丶佛笑我妖孽 提交于 2019-12-22 06:01:07
问题 Facebook updated it's mobile app and created an in-app browser and as they say it's more faster. The problem is that any link of any page opens inside this browser. I tried a lot of combinations without luck... Some examples are bellow. Did anyone knows more about it and how to forece links to open on external browsers? <script> function externalLinks() { for(var c = document.getElementsByTagName("a"), a = 0;a < c.length;a++) { var b = c[a]; b.getAttribute("href") && b.hostname !== location