facebook-apps

Facebook Pagetab App - user likes

烈酒焚心 提交于 2019-11-28 11:37:33
问题 I'm using the Facebook SDK and we created an app which worked just as we needed. We could $FacebookSDK->getSignedRequest() in PHP and it would respond with an object that included pages->liked which allowed us to determine if the user likes the page or not. Anyway, we have created an exact duplicate application (the only difference being that this app is about 3 months newer than the old) and the like property has completely disappeared and I can't get my hands on it. Any ideas why this is

Facebook: post image and description to wall and in page album via php

有些话、适合烂在心里 提交于 2019-11-28 08:50:45
I want users to post an image on a facebook page via a form on a website. When they have logged in via facebook on this website, they can select an image from their computer. Once they have selected the image, I want it to be posted to the users wall, and in an album of the page where I'm one of the administrators. I have created an app for this, but we can't seem to find a way to get the app to post on this facebook-page. Do we need to set any permissions on this page or app? To upload images to a facebook page of which you're an admin you need to do the following: 1.) Create a facebook

Need Help on OAuthException Code 2500

时光怂恿深爱的人放手 提交于 2019-11-28 08:40:48
I am trying to develop an Facebook application (apps.facebook.com/some_app) using PHP where I need to present some information based on user's music interests. I found that its under "user_likes > games". My problems are as follows: To gain access, I have implemented the oauth dialog method as suggested in API in my index page. $auth_url = "http://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&redirect_uri=" . urlencode($canvas_page) ."&scope=user_likes"; After successful authorization I come back to index page with "code" as parameters. http://MY_CANVAS_PAGE/?code=some base64 encoded

how to get email id of Facebook user using javascript sdk

房东的猫 提交于 2019-11-28 04:55:20
I am using JavaScript API to create my app for Facebook. The problem is, it's returning email = undefined . I don't know why? And if I use Facebook login/logout button on my app then the alert shows correct email id of the user but I don't want to do that. What am I missing? Here is my code: <p><fb:login-button autologoutlink="true" perms="user_about_me,email"></fb:login-button></p> <script> window.fbAsyncInit = function () { FB.init({ appId: '250180631699888', status: true, cookie: true, xfbml: true }); FB.getLoginStatus(function (response) { if (response.session) { greet(); } }); };

Use the Facebook API in a Google Apps Script web app?

社会主义新天地 提交于 2019-11-28 04:25:30
I'm trying to create a Facebook app using a Google Apps Script as web app, as the back-end. The only Facebook API that seems applicable is the Javascript SDK , but I can't even get that one to work. The current problem I'm having is that the Facebook JS SDK uses Javascript identifiers that end with: "__". Google Apps Script restricts names that end in double underscores. If I use a modified copy of Facebook's JS file without double underscores in names, I get this error: Refused to display [URL] in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' Any idea how to get GAS playing nicely

Getting list of Facebook friends with latest API

試著忘記壹切 提交于 2019-11-28 03:50:54
I'm using the most recent version of the Facebook SDK (which lets to connect to something called the 'graph API' though I'm not sure). I've adapted Facebook's example code to let me connect to Facebook and that works... but I can't get a list of my friends. $friends = $facebook->api('friends.get'); This produces the error message: "Fatal error: Uncaught OAuthException: (#803) Some of the aliases you requested do not exist: friends.get thrown in /mycode/facebook.php on line 543" No clue why that is or what that means. Can someone tell me the right syntax (for the latest Facebook API) to get a

facebook access token is invalid - trying to post to facebook website-“page” via app using a cron

拈花ヽ惹草 提交于 2019-11-28 01:47:00
I am trying to post to my website's Facebook fan-page via a cron on my server. I created a user on Facebook named "John Doe", i made him admin on my website's Facebook fan-page and then i created an app from that user in sandbox mode, so only he, "John Doe" can "run" it. I gave the necessary permissions to my app from "John Doe" who runs it. I can manually get the access tokens through developers.facebook.com and use them to post from my php cron script to my website's Facebook fan-page through "John Doe"'s app. The problem is, that in order for this to work, my "John Doe" facebook user must

Facebook share button: how to implement

南笙酒味 提交于 2019-11-28 00:13:38
问题 I'm trying to figure out how to implement the Share button exactly as how it is implemented here. I want the ability to let users post a given link to their news feed without requiring any kind of app permissions with some optional text that they can add to it. How did BuzzFeed do it? The Facebook documentation is very confusing to me which is why I'm having a hard time implementing it myself. It'd be great if somebody could just layout the steps needed to take. What exactly do I need to put

Facebook One or more of the given URLs is not allowed by the App's settings

此生再无相见时 提交于 2019-11-27 14:07:03
问题 Result in console: 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. Basically what I am trying is to enable user to login on my blog on blogspot.com, and to post on his wall some message. here is how I configure app on facebook: App Domains :blogspot.com Sandbox Mode :disabled Site URL :my_blog_name.blogspot

Use the Facebook API in a Google Apps Script web app?

寵の児 提交于 2019-11-27 05:20:08
问题 I'm trying to create a Facebook app using a Google Apps Script as web app, as the back-end. The only Facebook API that seems applicable is the Javascript SDK, but I can't even get that one to work. The current problem I'm having is that the Facebook JS SDK uses Javascript identifiers that end with: "__". Google Apps Script restricts names that end in double underscores. If I use a modified copy of Facebook's JS file without double underscores in names, I get this error: Refused to display