facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.18k stars 1.96k forks source link

PHP Instagram graph API for tagged images responding with not tagged images #1208

Open sriramulu0902 opened 4 years ago

sriramulu0902 commented 4 years ago

Hi, This is Sriramulu. I am a software developer. We are using Instagram graph API to get Instagram images. But while we are getting tagged product images the response having not tagged products. Can you please help me to resolve this issue.

Technology: PHP Laravel facebook SDK Instagram Graph API Instagram tagged product URI: ?fields=tags.limit(100){media_type,media_url,id,timestamp,permalink,username,caption,like_count}

Facebook\Facebook

$this->fbConn = new Facebook([ 'app_id' => 'application id', 'app_secret' => 'application secret', 'default_graph_version' => 'v6.0' ]);

$response = $this->fbConn->get("17841433730404361/?fields=tags.limit(100){media_type,media_url,id,timestamp,permalink,username,caption,like_count}", "");

Access token : EAAaj8Qr3POoBAMZBYd2mPFIECfhHkoCMZAqPUoo8yClBWBuBcqed5CVZBbPGHofKdXvQ6AUdwictRZBclsLRZBqx0TZCmRDSBwhR8JmSevoMewlc5t6gimSlujtkxOGZBBSpyzXXWx2WjkvTwIo2TL64Ul7kptw7gGynDzZCcZAlgAZCMGZBRXz3JcM

Thanks and regards, Sriramulu T