응용 프로그램을 통해 페이스 북 페이지에 게시하고 있지만 로그인하지 않은 상태에서 먼저 로그인하도록 요청하면 내 로그인 정보없이 응용 프로그램을 실행할 수 있습니까? 내 페이지에 게시 할 계정이 있습니까?로그인하지 않고 페이 스북 페이지에 게시
여기 내 코드
string app_id = "app_id";
string app_secret = "app_secret";
string scope = "publish_stream,manage_pages,share_item,offline_access";
if (Request["code"] == null)
{
Response.Redirect(string.Format(
"https://graph.facebook.com/oauth/authorize?client_id={0}&redirect_uri={1}&scope={2}",
app_id, Request.Url.AbsoluteUri, scope)); //here it requests me to login
}
else
{
//rest of code here
}
이 Stackoverflow 질문을 참조하십시오. http://stackoverflow.com/questions/17390240/post-on-facebook-pages-wall-without-having-to-login-c – broguyman
글쎄, 나는 말했지만, 이미 내 코드에서 페이지 토큰을 얻었지만 해당 게시물의 코드를 시도 할 때 페이지 토큰을 검색 할 수 없습니다. – Arshtat