0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

URL への Facebook のいいねの取得

Last updated at Posted at 2018-01-07

URL への Facebook へのいいねの取得です。

実行結果
facebook_jan0701.png

プログラムです。
APP_ID と APP_SECRET は変更して下さい。

#
#	url_likes.sh
#
rm -f result.json
#
APP_ID="11111111111111111"
APP_SECRET="2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a"
ACCESS_TOKEN=$APP_ID"|"$APP_SECRET
URL_TARGET="https://cdp-japan.jp/"
#
URL_GRAPH="https://graph.facebook.com/v2.12/"
ARGS="&fields=og_object%7Bengagement%7D%2Cengagement&access_token="$ACCESS_TOKEN
#
curl $URL_GRAPH"?id="$URL_TARGET$ARGS -o result.json
#
jq . result.json

参考ページ
Graph API V2.9でFacebookのイイね数を取得した話

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?