facebook-graph-api

Requesting page insight for Facebook getting error “Graph returned an error: An unknown error has occurred. ”

江枫思渺然 提交于 2021-01-28 06:04:59
问题 $helper = $fb->getRedirectLoginHelper(); $permissions = ['email','manage_pages','pages_manage_cta','publish_pages','publish_actions']; giving permissions. $loginUrl = $helper->getLoginUrl('http://localhost/Facebook/insight.php', $permissions); echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>'; facebook Insight code. $fb->setDefaultAccessToken($accessToken); Get user groups detail $requestPageInsights = $fb->request('GET', '/1364467436924381/insights/, $accessToken'); //Make a batch

Requesting page insight for Facebook getting error “Graph returned an error: An unknown error has occurred. ”

做~自己de王妃 提交于 2021-01-28 06:00:58
问题 $helper = $fb->getRedirectLoginHelper(); $permissions = ['email','manage_pages','pages_manage_cta','publish_pages','publish_actions']; giving permissions. $loginUrl = $helper->getLoginUrl('http://localhost/Facebook/insight.php', $permissions); echo '<a href="' . $loginUrl . '">Log in with Facebook!</a>'; facebook Insight code. $fb->setDefaultAccessToken($accessToken); Get user groups detail $requestPageInsights = $fb->request('GET', '/1364467436924381/insights/, $accessToken'); //Make a batch

Facebook Marketing API. Geographic search

随声附和 提交于 2021-01-28 02:37:20
问题 I am trying to get list of all cities of a country from Facebook. I started from FB documentation of v2.9 here: Facebook Marketing API And tried of getting list of cities as described using curl: curl -G \ -d 'location_types=["city"]' \ -d 'type=adgeolocation' \ -d 'q=dub' \ -d 'access_token=<MY_TOKEN>' \ https://graph.facebook.com/v2.9/search But it returns empty json. If i remove q=dub parameter it still returns empty data. But if i put country as a type of location, then it nicely returns

UNIQUE constraint failed: auth_user.username

≡放荡痞女 提交于 2021-01-27 12:54:43
问题 I'm trying to store the First name and last name straight from the Facebook API to a User Auth model (which is extended with FacebookProfile model, containing webpull, id and year_formed) Models.py class FacebookProfile(models.Model): user = models.OneToOneField(User, on_delete = models.CASCADE) id = models.PositiveIntegerField(primary_key = True) #name = models.CharField(max_length = 200, null = True) year_formed = models.PositiveIntegerField(default = 0) webpull= models.CharField(max_length

Authentication is null on the SecurityContextHolder.getContext();

隐身守侯 提交于 2021-01-27 07:24:18
问题 I am trying to add Facebook authorization using Spring Security in Spring Boot app. Currently, my problem is extracting data from Principal. Here is my security config: public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure (HttpSecurity http) throws Exception { http .csrf().disable() .antMatcher("/**") .authorizeRequests() .antMatchers("/", "/login**").permitAll() .anyRequest().authenticated() .and() .logout() .deleteCookies("JSESSIONID")

Authentication is null on the SecurityContextHolder.getContext();

若如初见. 提交于 2021-01-27 07:20:42
问题 I am trying to add Facebook authorization using Spring Security in Spring Boot app. Currently, my problem is extracting data from Principal. Here is my security config: public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure (HttpSecurity http) throws Exception { http .csrf().disable() .antMatcher("/**") .authorizeRequests() .antMatchers("/", "/login**").permitAll() .anyRequest().authenticated() .and() .logout() .deleteCookies("JSESSIONID")

Site URL has been been identified as malicious and/or abusive

半城伤御伤魂 提交于 2021-01-27 04:44:42
问题 This question has been around but my scenario is pretty tricky. I'm in the half-way of developing and launching a pretty large Facebook application (website) in Google App Engine and brought my own custom domain to point to the app id. In the Facebook apps panel I registered : 1 application for the custom domain 1 application for the subdomain given by google app engine Few days I've been testing the application through the custom domain. I forgot to change the redirect URL in my

How to correctly execute a axios POST request within a firebase cloud function

与世无争的帅哥 提交于 2021-01-25 05:25:09
问题 I'm currently working on an app that publishes a post to facebook on call of the below firebase cloud function. Problem now is that the request throws back an error 408: Error - Post on Facebook { Error: Request failed with status code 408 at createError (/user_code/node_modules/axios/lib/core/createError.js:16:15) at settle (/user_code/node_modules/axios/lib/core/settle.js:18:12) at IncomingMessage.handleStreamEnd (/user_code/node_modules/axios/lib/adapters/http.js:201:11) at emitNone

Want to save facebook image into my rails app

佐手、 提交于 2021-01-01 07:16:40
问题 I am using ominauth to signup users in my rails app.i also have a basic signup option with email address also. So for both users i have to save upload user picture in my file system I have regular file upload for my email users but for FB users i want their pics to save in my disc so i can use same code and not use FB graph link while displaying. FB sends images in this format with graph API http://graph.facebook.com/100007619644580/picture?type=large How can i save that in my public folder

Facebook: Refreshing long-lived access token automatically

筅森魡賤 提交于 2020-12-30 06:32:51
问题 I'm storing long-lived access tokens for users of my application that have associated their Facebook accounts to it. Since the demise of the offline_access tokens, these long-lived tokens have an expiry date of "about 60 days." However, they can refresh themselves when the user interacts with Facebook. According to the documentation: These tokens will be refreshed once per day when the person using your app makes a request to Facebook's servers. If no requests are made, the token will expire