https://developers.facebook.com/tools/explorer
Extended Permissions - publish_actions 체크 - Get Access Token
아래 내용처럼 입력후 Submit 하면 개시된다.
한글은 안되네요 ㅠㅠ
https://graph.facebook.com/v2.0/me.feed
name Facebook Graph API TEST~!!
caption Facebook Graph API PublishStory Test!!
description Facebook Graph API PublishStory Test!!
link http://a-team.kr
picture http://a-team.kr/images/common/ci.jpg
결과
엑세스 토큰 가져오기
https://graph.facebook.com/oauth/access_token?client_id={app-id}&client_secret={app-secret}&grant_type=client_credentials
Exchanging code
for an access token
To get an access token, make an HTTP GET request to the following OAuth endpoint:GET https://graph.facebook.com/oauth/access_token?
client_id={app-id}
&redirect_uri={redirect-uri}
&client_secret={app-secret}
&code={code-parameter}
This endpoint has some required parameters:client_id
. Your app's IDsredirect_uri
. This argument is required and must be the same as the originalrequest_uri
that you used when starting the OAuth login process.client_secret
. Your unique app secret, shown on the App Dashboard. This app secret should never be included in client-side code or in binaries that could be decompiled. It is extremely important that it remains completely secret as it is the core of the security of your app and all the people using it.code
. The parameter received from the Login Dialog redirect above.
The response you will receive from this endpoint, if successful, is
access_token={access-token}&expires={seconds-til-expiration}
If it is not successful, you'll receive an explanatory error message.Graph API 를 이용한 페이스북에 공유하기
https://developers.facebook.com/docs/android/share#linkapi
댓글 없음 :
댓글 쓰기