facebook-javascript-sdk

tag facebook friends python sdk GraphApi in put_photo

孤人 提交于 2020-01-21 10:30:40
问题 I would to post pictures and tag with frieds. graph = facebook.GraphAPI(self.cfg['access_token']) tags = [{"tag_uid": "1234567890", "x": 0, "y": 0}, {"tag_uid": "0001234567890", "x": 0, "y": 0}] graph.put_photo(image=open(str(file), 'rb'), message='Pictures test', **{'tags': tags}) but i've this error facebook.GraphAPIError: (#100) param tags must be an array. 回答1: error solved with tags = [{"tag_uid": "1234567890", "x": 0, "y": 0}] graph.put_photo(image=open(str(file), 'rb'), message=

Reload fb:comments widget

北战南征 提交于 2020-01-21 08:27:09
问题 I have a Facebook App that allows people to create "Posters". Every "Poster" can be commented on using fb:comments widget. User can switch between posters using AJAX. The problem is that after switching to next poster fb:comments widget is still pointing to previous URL. Is there a way to "reload" a widget for a new url? 回答1: Ok, solved this by myself, leaving it here for reference. If you want to reload fb:comments widget it's as simple as that: // xid can only contain a-zA-Z0-9_%.- comments

Reload fb:comments widget

ぃ、小莉子 提交于 2020-01-21 08:26:05
问题 I have a Facebook App that allows people to create "Posters". Every "Poster" can be commented on using fb:comments widget. User can switch between posters using AJAX. The problem is that after switching to next poster fb:comments widget is still pointing to previous URL. Is there a way to "reload" a widget for a new url? 回答1: Ok, solved this by myself, leaving it here for reference. If you want to reload fb:comments widget it's as simple as that: // xid can only contain a-zA-Z0-9_%.- comments

Facebook login with JavaScript SDK error: “redirect URI not whitelisted” [duplicate]

坚强是说给别人听的谎言 提交于 2020-01-20 05:53:34
问题 This question already has answers here : Javascript Parse Facebook Login Issue (4 answers) Closed 3 years ago . I want my website to login with facebook but I am seeing this error. Given URL is not whitelisted in Client OAuth Settings: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs. <!DOCTYPE html> <html> <head> <title>Facebook Login

facebook graph api if a user has liked a page

此生再无相见时 提交于 2020-01-17 03:53:10
问题 I am trying to use facebook graph api to find out if a user has liked a particular page.This is the query I tried https://graph.facebook.com/user_id/likes/page_id?access_token="my access token" I tried the same kind of query to find if two users are friends but its returning empty data set even for that. https://graph.facebook.com/user_id/frineds/user_id How should I solve that issue? 回答1: You can use GET /v2.2/{user-id}/likes/{page-id} to find out if a user likes a page. Remember that you

Get user's facebook info after login using facebook php sdk

冷暖自知 提交于 2020-01-15 12:35:08
问题 I am using Facebook javascript sdk and php sdk to login user to my web app. With javascript I have the login/out working and I can get a logged in user's public facebook details. However, when using php, I am not getting the user's facebook details. To give you some info on the app, when I navigate to a certain page that contains a form, the code checks to see if their logged in. If not, they are given a LoginUrl link. Once logged in, I have the $user_id, so now the user can use the form, but

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK

狂风中的少年 提交于 2020-01-15 12:33:45
问题 Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the 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. I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK

ⅰ亾dé卋堺 提交于 2020-01-15 12:33:26
问题 Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the 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. I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080

Facebook Login Button: Can I prevent auto page reload after login?

霸气de小男生 提交于 2020-01-15 07:56:06
问题 I'm trying to upgrade to the 3.1 SDK and running into some problematic behavior: When I log in via the FB login button on my site, the page reloads, despite the fact that I have my own JS method defined in the login button's "onlogin" event. Because the page instantly reloads, it appears that my own "onlogin" script (which checks the FB user and logs them into MY site) seems to get cut off or does not fire. Thus, the user cannot log in to the site. The other side effect is peculiar: After

Facebook Canvas setAutoGrow grows forever in IE

亡梦爱人 提交于 2020-01-15 06:06:08
问题 I am seeing a weird issue in Internet Explorer 9 on my Facebook pagetab when I have setAutoGrow to true. The height grows continuously without end. This is only happening in Internet Explorer for me. Tested with Chrome and Firefox as well. An example can be found at https://www.facebook.com/GunSweeps/app_480125662005248 Any ideas on what could be the cause? I read another thread on here that suggested it was html, body being set to 100%, and another which said a top-margin was the cause. I'm