获取粉丝专页的位置id
Get the location id of a fan page
我有一个带有地址的粉丝专页。
此外,我可以使用 facebook API.
获取位置详细信息
但是,要使用 review button
创建新的 post,我需要位置 ID 而不是详细信息。
我正在使用以下行创建 share button
:
var data = {
message: 'Hi !',
place: location_id
};
FB.api('/me/feed', 'post', data, function(response) {
if (!response || response.error) {
console.error(response.error);
} else {
console.log(response.id);
}
});
如果我使用特定的位置 ID,它会起作用。但是我无法从特定页面获取位置 ID。
请给我一些想法。谢谢!
我快要睡着了,但我想到了一个主意。
最后,这个想法就是解决方案:
可以直接在地方参数中使用粉丝页面id。它可以用作地点 ID。
我有一个带有地址的粉丝专页。 此外,我可以使用 facebook API.
获取位置详细信息但是,要使用 review button
创建新的 post,我需要位置 ID 而不是详细信息。
我正在使用以下行创建 share button
:
var data = {
message: 'Hi !',
place: location_id
};
FB.api('/me/feed', 'post', data, function(response) {
if (!response || response.error) {
console.error(response.error);
} else {
console.log(response.id);
}
});
如果我使用特定的位置 ID,它会起作用。但是我无法从特定页面获取位置 ID。
请给我一些想法。谢谢!
我快要睡着了,但我想到了一个主意。
最后,这个想法就是解决方案:
可以直接在地方参数中使用粉丝页面id。它可以用作地点 ID。