Questions tagged [facebook-php-sdk]

The Facebook PHP-SDK provides Facebook Platform support to your PHP - based web apps.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

eCommerce product is not found in my Facebook Developer Account

I read that article https://developers.facebook.com/docs/commerce-platform/app-dashboard which says I can create a test eCommerce account by using eCommerce product in my Facebook app. You can see the ...
habib's user avatar
  • 1,482
-4 votes
0 answers
43 views

Facebook API connection issue

I have a project to connect facebook with api and show clients information on my site. I have app id, app secret and access token already, and build code in laravel. I use facebook-php-business-sdk ...
Hades's user avatar
  • 14
0 votes
0 answers
34 views

Facebook Log-in not properly working for Meta?

I recently got an email from Meta stating there is an issue with my Facebook login via Android. There are no issues for iOS devices. I tested the login with my old Samsung S10e, and everything worked ...
Tammy'sSlots's user avatar
0 votes
0 answers
45 views

How to get reels views in facebook page using FB graph API

I am using facebook graph API to get the our page video views () like this. https://graph.facebook.com/v3.1/$pageid/insights?metric=page_video_views&since=from-date&until=to-date&period=...
Kiran's user avatar
  • 61
0 votes
0 answers
17 views

Facebook Permission to Show Timeline

I am a WordPress theme developer and want to add one feature to my theme where my theme users can be able to display their own Facebook post/timeline inside their own website. So the scenario is as ...
Peter Chimp's user avatar
0 votes
0 answers
22 views

Error Logging In & Getting Facebook OAUTH Token

Using the Facebook SDK to get a user token and then convert it into a page access token. However I'm getting the Unauthorised Access or error occurred. Here is my code $fb = new Facebook\Facebook([ '...
ChrisYates's user avatar
1 vote
0 answers
58 views

Facebook API : feed a carousel post (video and photos)

I'm trying to create a carousel (non-ad) post using facebook's API that contains both video and image but I'm not able to post the video. I have read: Facebook API : feed a carousel post (multi-photos)...
Chương Hà Văn's user avatar
3 votes
0 answers
162 views

Facebook App Can't Submit Data Handling Questions [closed]

I am not sure why I can't submit these data handling questions for my facebook app. I am not able to contact their support and don't know how to resolve this. Does anyone know why?
Jason Biondo's user avatar
0 votes
1 answer
23 views

Facebook Lead Ads API - Field identifiers in multiple languages

I'm having a problem with some generated forms and their integration with my CRM. Some forms come with fields in Portuguese (nome_completo, numero_telefone, etc) and other forms come in English (...
Matheus Sena dos Passos's user avatar
0 votes
0 answers
38 views

How to find facebook post id

Can anyone help me find the Facebook Post ID? For example, with this post URL: https://www.facebook.com/ProgrammersCreateLife/posts/...
Theerastillhere's user avatar
0 votes
0 answers
36 views

What is the authorization for reach and frequency campaign?

I was tasked with fetching estimates for cost per click, impressions, reach, total spend, etc. I'm trying to use the reachfrequencyprediction API, but after I execute the request I get the following ...
Emanuele Lucchese's user avatar
0 votes
0 answers
142 views

An ad with Dynamic Experience only support Traffic and Conversions campaign objectives

I use facebook-business-php 17.0.1 I successfully created campaign, adset and creative through sdk (this scheme using asset_feed_spec https://developers.facebook.com/docs/marketing-api/dynamic-...
jianfei ouyang's user avatar
0 votes
0 answers
10 views

Posting in Facebook page Shop issue

This code i used for post in fb page shop. when i am trying to save and post on fb give me 404 error and not posting in page shop also maybe i am getting difficulties to get shop page id final public ...
Shahadath Hossain's user avatar
0 votes
2 answers
472 views

How to fetch instagram last 10 posts and likes using the Facebook Graph API?

I am writing social integration class for Facebook & Instagram. Facebook is done using PHP SDK and Graph API now struggling with Instagram. I followed the following procedure: Retrieved Facebook ...
Syed Shahzaib's user avatar
0 votes
0 answers
38 views

FB.ui() method does not work on Mobile Browser

I am facing a problem while working with Facebook SDK. I have Fb.ui() method which I am using for sharing the post in my application. The problem is that when I use the application on Desktop, it ...
Muhammad Kahfulwara's user avatar
0 votes
1 answer
44 views

the comments of posts or video does not return data from page facebook

I'm utilizing Meta Developer Tools to test an API, but I'm encountering an issue where I'm not receiving any comments, posts, videos, or attachments. Interestingly, I successfully used the same ...
iyed ghodhbane's user avatar
0 votes
0 answers
48 views

Can't share my ad account with bm partner through facebook graph api

I need a help from an expert in Facebook Graph API. I have the following problem with this function: Business to Business. Specifically with this action: Grant Access to Assets for Another Business ...
mstdev's user avatar
  • 1
0 votes
0 answers
82 views

Authentication of facebook in your website using php graph sdk

I have made a login authentication in my website using php graph SDK and made a Facebook developer app to link it. Whenever I try to login, it fetches the data and stores it in the database. The issue ...
Rana Tahir's user avatar
0 votes
0 answers
69 views

How to extend facebook API rate limit?

I send to my customers many messages by messenger API. But after some time i receive error: Calls to this api have exceeded the rate limit. Is there any option to extend this limit? Does facebook have ...
Adam Kozlowski's user avatar
1 vote
0 answers
86 views

Graph returned an error: This authorization code has been used?

This authorization code has been used error returned when refreshing the page after login using facebook id. I have read many blogs and I did not get any idea about this issue. Here is my code. [enter ...
iyed ghodhbane's user avatar
0 votes
0 answers
86 views

Facebook data deletion request error when sending json response

When implementing the Facebook data deletion request, Facebook calls my method from their side and is telling me that the json response im sending back to them is not what they are expecting to ...
Esko918's user avatar
  • 1,407
0 votes
0 answers
45 views

How to setup Webhook to get notified whenever use has changed his password?

I have a app where users can signup/login with their FB account. How can I setup a webhook on my fb app that whenever the fb user changes his password then I get the callback? Following thing is ...
Bhaskar Dabhi's user avatar
0 votes
0 answers
33 views

Facebook publishing post, but receive error

I'm posting a message with a video with the publishing fb api: $res = Http::post(env('FB_API').'31457605812596/videos?published=false&access_token='.'my-token', [ 'file_url' => 'https://cdn....
Jamie's user avatar
  • 10.4k
0 votes
0 answers
33 views

Webview social media login issue

I want get my website ready on android app Using Webview package com.example.website_; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import ...
Aaron Greer's user avatar
0 votes
0 answers
62 views

How to set token permissions in Facebook php SDK using code?

I started using php sdk of Facebook and I generated an access token using the Graph API Explorer and I set all the permissions there. Now I use that token in my code like: \FacebookAds\Api::init(...
JanBoehmer's user avatar
0 votes
0 answers
124 views

Posting To FB Page As Page

I'm using the Facebook PHP SDK and trying to post to my page using the page name itself rather than my personal profile name. I have generated a short-lived access token and then generated a page ...
Complete Noob's user avatar
0 votes
0 answers
35 views

Facebook API images not added to post

I'm trying to make a post to FB page with images. It looks like this: First create image: $res = Http::post( env("FB_API") . 'my-page-id' . "/photos?...
Jamie's user avatar
  • 10.4k
0 votes
0 answers
77 views

PHP: Getting list of Facebook 'pages' under an account gets an empty list

I am trying to get the list of FB pages associated with an account. This code has been running successfully for quite a while (a couple of years at least). I am getting no errors either in the ...
Andy Wallace's user avatar
0 votes
1 answer
85 views

How to query Facebook PHP Business SDK for Adsets with updated_time in the past two weeks?

I am using the Facebook PHP Business SDK to retrieve adsets that have an updated_time value in the past two weeks. So far I have: $adsets = $campaign->getAdsets( [AdSetFields::NAME, AdSetFields:...
Mr B's user avatar
  • 3,990
2 votes
1 answer
283 views

How to find Full list of Facebook ID and names of Cities from Facebook Marketing API

How can I use the Facebook Ads API to find a comprehensive list of all the cities that can be targeted for ads, and what parameters should I use in my request to ensure that I receive accurate and up-...
Binu Mathew's user avatar
0 votes
1 answer
404 views

Facebook Graph API get First and Last name from PSID?

I have setup a FB Webhook to notify my technicians when a user messages my business page. The notification works and I get the message and the sender's ID (PSID) but I can't seem to get the sender's ...
EagleTalonTim's user avatar
0 votes
0 answers
43 views

Facebook API find corresponding Page by Ad id

I'm trying to retrieve all the ad spent values for my facebook posts through the Facebook Graph API. I went from Business => Owned Ad Accounts => Ad Account => Campaign => Ad set => Ad, ...
user20142617's user avatar
1 vote
1 answer
330 views

How to post on a Facebook group as a Page, using the Graph API Explorer?

I am the administrator of website, a Facebook group, a Page and a Facebook API. I would like to create, once a day, a post on my Facebook group using my Page name as author AND using the Graph API ...
Kreeger's user avatar
  • 47
0 votes
0 answers
128 views

Use data included in event parameters of conversion tracking

Is it possible to fetch the event parameter values that is passed when a pixel is fired? Suppose I am adding a custom parameter orderID. I am able to get the stats of a pixel like how many times an ...
Aromal S's user avatar
0 votes
0 answers
73 views

Facebook graph api - permissions to post to my feed? publish_actions - deprecated

Previously i've used publish_actions permission to post to my feed. So i've used long-lived user token and make request to facebook: $fb->post('/me/feed', array('name'=>'Test','message'=>'...
user2455079's user avatar
0 votes
0 answers
45 views

Facebook Login returns different user id

about 500 different pages are connected to my app, we provide a seamless expierience on Messenger so we recieve messages from their clients. The same person which talks on messenger with a connected ...
szef0's user avatar
  • 33
0 votes
0 answers
277 views

Facebook Login - testing after app restriction

I have a (few) facebook login apps that have been restricted for reasons I'm working on resolving. The problem is that now the app is in development mode and restricted. I created a test user, and ...
Andy Wallace's user avatar
0 votes
0 answers
259 views

How to get facebook account billing information through facebook graph

I'm trying to get the Current balance and Payment threshold of an ad account using FB Graph API. But I didn't find these two fields in the graph-api documentation. https://developers.facebook.com/docs/...
yongfang's user avatar
0 votes
0 answers
24 views

Facebook API Ad creation

I'm looking for a way to retrieve all Campaign, AdSet and Ad fields to create an Ad using Facebook API, and both AdSet and Ad should depend on previous selection, e.g: if I choose Brand Awareness, I ...
Mohammed Ben Aoumeur's user avatar
0 votes
0 answers
79 views

Facebook php sdk post to page suddenly broke

My Facebook app (written in php) is used to post things to my own page. It was working great until October 25, but since then the $fb->post method started producing FacebookResponseException's such ...
Free Bud's user avatar
  • 746
0 votes
0 answers
154 views

facebook apps works for the test accounts but not for the live accounts

my facebook application is working with the facebook test users accounts and permissions, facebook team reviewed the application and approved those permissions for the live app. i am having a strange ...
Learning PHP OOP's user avatar
0 votes
0 answers
43 views

How to check the api rate limits using Facebook business SDK PHP?

I am trying to check if the rate limit is exceeded using PHP Facebook Business SDK. I am able to get the rate limit by fetching the header data using getResponse() -> getHeaders(). But this does ...
Aromal S's user avatar
0 votes
0 answers
346 views

How to get Facebook page followers and likes count

I need to make an PHP application where anybody can define a page name and get the public information of that page, specifically the followers count. For example, Google's Facebook page (https://www....
RBFraphael's user avatar
1 vote
1 answer
177 views

How to check if page is restricted from advertising?

I am using Facebook marketing API for creating ads for client pages. But some ads are getting disapproved by FB ads manager because the client page was restricted from advertising. Is it possible to ...
Aromal S's user avatar
0 votes
0 answers
473 views

Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'. (Plugin Facebook-comments Laravel)

i'm adding facebook comments plugin from this web plugin comment facebook , but i get error Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny' . I've ...
Eliavina's user avatar
1 vote
0 answers
566 views

Laravel Socialite: This authorization code has been used (Facebook)

Description: I have implemented the laravel socialite stateless, because I am using Laravel as a backend app with REST APIs and my frontend is in Angular. I get the correct redirect URL, however, when ...
user13289818's user avatar
2 votes
1 answer
1k views

Whatsapp cloud API Media URL doesnot work

I am using whatsapp cloud API webhook to receive customer messages. When customer sends a media object like image or video, I am able to receive media id. On sending GET request to https://graph....
Aromal S's user avatar
0 votes
0 answers
46 views

Facebook API find out if a page I have permission to advertise on is published and not restricted

I have managed to get permission to create adverts for customer's pages through the API, but some of the pages they choose to advertise on that we list from their account are either not published or ...
Pim Papendrecht's user avatar
0 votes
0 answers
583 views

Get Facebook leads by using API

I got an API to download Facebook leads in excel format shown like below, https://www.facebook.com/ads/lead_gen/export_csv/?id=XXXXXXXXXX&type=form, How can I download this excel sheet into my ...
MURALA SANDEEP's user avatar
1 vote
2 answers
461 views

The provided image file is invalid. Please check your image path again. Facebook Graph Api error

I am trying to upload image to Facebook graph api with Http Client of Laravel. But I am getting the error mentioned before. $ad_account_id = env("AD_ACCOUNT_ID"); $access_token = env(...
Vüsal Hüseynli's user avatar

1
2 3 4 5
74