자바 스크립트 SDK를 사용하여 위도와 경도를 사용하여 페이스 북에 위치를 게시하는 방법은 무엇입니까? 위치를 게시 할 예를 찾을 수 없습니다.페이스 북 그래프 API를 사용하여 위치가있는 포스트 만들기
게시물에 게시물을 게시하려면 그래프 작업 만들기가 필요합니까?
페이지의 URL을 공유하고 페이지의 Open Graph 태그를 사용하여 Facebook 게시물에서 사용할 세부 정보를 공유 할 수 있습니까?
var body = 'Reading JS SDK documentation';
FB.api('/me/feed', 'post', { message: body }, function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response.id);
}
});
설명서의 예는 말한다 : 위치 게시물 그래프 API를 사용하여 생성 할 수 없음을
You can make a POST request to locations edge from the following paths:
/{page_id}/locations
When posting to this edge, a Location will be created.
이이 뜻
자바 스크립트 코드는 문자 메시지와 게시물을 만들 수 있습니다 사용자 피드 용
참조 :
- https://developers.facebook.com/docs/javascript/reference/FB.api
- https://developers.facebook.com/docs/graph-api/reference/location/
편집 :
here 답변으로 부착 위치로 포스트를 작성하는 일례를 찾을 수 :
FB.api('/me/feed', 'post', {
name: 'SomeName',
message: 'SomeMessage',
place: '106039436102339' // ID for Tallinn, Estonia
}, function (response) {});
을 위도 및 경도를 사용하여 위치 ID를 찾는 방법은 다음과 같습니다.