http://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=http://facebook.com

문서화되지 않은 방법: 또는 다음 URL을 호출하여도 탭 추가가 가능하다.

https://www.facebook.com/add.php?api_key=YOUR_APP_ID&pages

Updated(2012/03/16) 최근 페이스북이 앱페이지(앱 커뮤니티 페이지)의 관리자 메뉴 속에 앱을 페이지에 추가하기 메뉴를 추가했다. 앱페이지를 만들었다면 이 메뉴 기능을 이용해도 된다. 자세한 내용


Add Page Tab Dialog

https://developers.facebook.com/docs/pages/page-tab-dialog
FB.ui({
  method: 'pagetab',
  redirect_uri: 'YOUR_URL'
}, function(response){});
https://www.facebook.com/dialog/pagetab?
  app_id=YOUR_APP_ID
  &redirect_uri=YOUR_URL

 https://developers.facebook.com/docs/pages/tabs

FB.ui({
  method: 'pagetab',
  redirect_uri: 'YOUR_URL'
}, function(response){});
https://www.facebook.com/dialog/pagetab?
  app_id=YOUR_APP_ID
  &redirect_uri=YOUR_URL

Posted by incree

2015/08/21 23:52 2015/08/21 23:52
, , , , ,
Response
0 Trackbacks , 0 Comments
RSS :
http://www.incree.com/tc/incree/rss/response/365

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

Facebook 탭앱 관리를 Graph API를 사용해서 하고 있었는데,

잘되던 탭앱 custom_name, custom_image_url 수정이 어느날부터 갑자기 에러가 나기 시작했다.

에러는 다음과 같았다.

[error] => Array
(
[message] => (#210) Subject must be a page.
[type] => OAuthException
[code] => 210
)

해결은 파라미터에 추가로 access_token을 넘겨줘서 처리했다.

기존에는 따로 안 넘겨줘도 잘 작동했었는데, 왜 어느날 갑자기 바뀐걸까?

처음 개발하면서 테스트 해봤을때 access_token을 넘겨주나 안 넘겨주나 똑같이 잘 작동해서

curl시에 api에서 알아서 access_token을 추가해서 처리하는 줄 알았는데, 그게 아닌가보다

수정전
$postArray = array('custom_name' => $custom_name);
$fbObj->api('/' . $pageId. '/tabs/app_' . $tabappId, 'POST', $postArray);
===============>
수정후
$postArray = array('custom_name' => $custom_name, 'access_token' => $pageAccessToken);
$fbObj->api('/' . $pageId. '/tabs/app_' . $tabappId, 'POST', $postArray);

Posted by incree

2014/07/25 11:40 2014/07/25 11:40
, , , , ,
Response
0 Trackbacks , 0 Comments
RSS :
http://www.incree.com/tc/incree/rss/response/343

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

[SNS] 페이스북 tab app api 관련 url

Add Page Tab Dialog(페이지에 탭앱 추가하기)
https://developers.facebook.com/docs/reference/dialogs/add_to_page/

FB.ui({
  method: 'pagetab',
  redirect_uri: 'YOUR_URL'
}, function(response){});

https://www.facebook.com/dialog/pagetab?
  app_id=YOUR_APP_ID
  &redirect_uri=YOUR_URL
https://www.facebook.com/dialog/pagetab?app_id=449768265140751&redirect_uri=http://facebook.com


Realtime Updates

https://developers.facebook.com/docs/reference/api/realtime/
https://developers.facebook.com/docs/reference/api/realtime/#subscribingviagraphapi

https://developers.facebook.com/docs/reference/api/page/#realtime
사용자 삽입 이미지
변경가능 항목
name
category_list
picture
checkins
feed


Connections tabs
https://developers.facebook.com/docs/reference/api/page/#connections
https://developers.facebook.com/docs/reference/api/page/#tabs

Create

You can install a profile_tab at the end of the current list of installed tabs for a page by issuing an HTTP POST request to PAGE_ID/tabs with a Page Access Token:

Parameter Description Type Required
app_id ID of the application for which to install the tab. string Y

If the create is successful, you get the following return:

Description Type
If the create succeeded boolean

Update

You can update an installed profile_tab for a page by issuing an HTTP POST request to /PAGE_ID/tabs/TAB_ID with Page Access Token and the following parameters:

Parameter Description Type Required
position Order in which the tab will appear on the profile. Must be after permanent tabs and less than the number of installed tabs. Index starts at 0 integer N
custom_name Name to be used for the tab. If this is set to an empty string, the tab will use the application’s default tab name. string N
is_non_connection_landing_tab Set this tab as the default landing tab for users who have not liked and are not admins of the Page. If provided, value must be true. boolean N
custom_image_url URL for an image to be used as a custom icon for this Page app. Note that either custom_image_url or custom_image can be set, but not both. string N
custom_image The name of an image file to be used as a custom icon for this Page app. Note that either custom_image_url or custom_image can be set, but not both. image file N

If the edit is successful, you get the following return.

Description Type
If the edit succeeded boolean

Delete

You can delete an installed profile_tab where is_permanent is not true for a page by issuing an HTTP DELETE request to /PAGE_ID/tabs/TAB_ID object with a Page Access Token.

If the delete is successful, you get the following return.

Description Type
If the delete is successful boolean



tabapp: {
            create: function(pageId, tabappId, pageAccessToken, callback) {
                FB.api('/' + pageId + '/tabs', 'POST', {access_token: pageAccessToken, app_id: tabappId}, function(response) {
                    if(callback) callback.apply(this, [response]);
                });
            },
            update: function(pageId, tabappId, pageAccessToken, updateData, callback) {
                updateData.access_token = pageAccessToken;
                FB.api('/' + pageId + '/tabs/app_' + tabappId, 'POST', updateData, function(response) {
                    if(callback) callback.apply(this, [response]);
                });
            },
            delete: function(pageId, tabappId, pageAccessToken, callback) {
                FB.api('/' + pageId + '/tabs/app_' + tabappId, 'DELETE', {access_token: pageAccessToken}, function(response) {
                    if(callback) callback.apply(this, [response]);
                });
            }
        }

Posted by incree

2013/10/09 09:44 2013/10/09 09:44
, , , , ,
Response
0 Trackbacks , 0 Comments
RSS :
http://www.incree.com/tc/incree/rss/response/276

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다


Notices

Archives

Authors

  1. incree

Recent Trackbacks

Calendar

«   2017/10   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Site Stats

Total hits:
427668
Today:
68
Yesterday:
210