문제 설명
하나의 앱에서 각 페이지에 대해 다른 facebook 보안 페이지 탭 URL을 추가하는 방법 (How to add diffrent facebook Secure Page Tab URL for each page in one app)
예를 들어 다른 "보안 페이지 탭 URL"을 삽입할 수 있는 페이지 탭용 Facebook 앱을 만들려고 합니다.
hxxps://fb.xxx.com/sub1 ‑‑‑‑‑> 페이지 A
. . .
hxxps://fb.xxx.com/subX ‑‑‑‑‑> 페이지 X
사용하려고 합니다
function pageinstall() {
FB.ui({
method: 'pagetab',
redirect_uri: 'https://www.xxx/test.php'
}, function(response){});
}
하지만 이 방법은 앱 설정 페이지에 채워진 "보안 페이지 탭 URL"만 삽입합니다.
JavaScript‑SDK 또는 php‑SDK에서 가능하다면
제안해주세요. .
고마워요,
음폴
참조 솔루션
방법 1:
That is not possible – you can only have one page tab URL per app.
If you want to show different content depending on what page the app is added to – then get the page id from the signed_request
that is POSTed to your app on initial load into the iframe.
https://developers.facebook.com/docs/pages/tabs#integrating https://developers.facebook.com/docs/reference/login/signed‑request