我正在寻找一个Instagram API,获取用户的DP和故事。我已经尝试了一些方法,比如从这个https://api.instagram.com/v1/users/{user-id}/media/recent?callback=&client_id={client_id}获取DP,但它一次又一次地被阻止,并在Instagram应用程序上提示一个活动弹出窗口,我不得不接受几次。有没有人知道他们所有的Instagram工具https://instadownloaderpro.com,尤其是Instagram视频下载工具使用的是什么API?我也尝试了mgp25/Instagram-API,但它不允许我获得Insta和Stories。Facebook Graph API在这种情况下可以工作吗?
发布于 2020-01-10 03:08:14
如果Insta api现在还没有完全消失的话,他们正在让它退役。因此,它可能不值得在此基础上构建任何可持续的东西。在过去的5年里,我一直在研究社交apis,我已经能够让我想要的每一个可能的范围都得到批准。
是的,您可以使用Graph API。这里有一些注意事项。
开箱即用,你至少需要申请。这些也不能保证得到批准。
这是细目
https://developers.facebook.com/docs/instagram-api/guides/insights
https://developers.facebook.com/docs/instagram-api/guides/business-discovery https://developers.facebook.com/docs/instagram-api/reference/user/business_discovery
https://developers.facebook.com/docs/instagram-basic-display-api
有关创建者和企业帐户的更多信息:https://developers.facebook.com/docs/instagram-api/reference/user
发布于 2020-01-09 15:03:15
You could use this code for InstaDP
use MetzWeb\Instagram\Instagram;
$instagram = new Instagram(array(
'apiKey' => 'YOUR_APP_KEY',
'apiSecret' => 'YOUR_APP_SECRET',
'apiCallback' => 'YOUR_APP_CALLBACK'
));
// grab OAuth callback code
$code = $_GET['code'];
// or maybe $code = $request->code; // if you are using Laravel
$data = $instagram->getOAuthToken($code);
// set user access token
$instagram->setAccessToken($data);
// and
$pictures = $instagram->getUserMedia();https://stackoverflow.com/questions/59658112
复制相似问题