如何添加一个应用程序到我的Facebook页面? [英] How to add an app to my Facebook page?
本文介绍了如何添加一个应用程序到我的Facebook页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
<!DOCTYPE HTML>
< html>
< head>
< meta http-equiv =content-typecontent =text / html; charset = utf-8/>
< meta name =authorcontent =Frederick Behrends/>
< title> Facebook PageTab对话框生成器< / title>
< / head>
< body>
AppID:< input type =textid =AppIDvalue =/>< br />
< input type =buttonvalue =添加到页面onclick =AddToPage();/>
< script>
函数AddToPage(){
var接下来,AppID;
AppID = document.getElementById('AppID')。
if(isNaN(AppID)=== true){
alert('AppIDungültig');
返回false;
}
if(Next ==''|| typeof Next =='undefined')
Next ='http://www.facebook.com /';
window.open(http://www.facebook.com/dialog/pagetab?app_id=+ AppID +& next =+ Next,PageTab,width =高度= 500\" );
返回false;
}
< / script>
< / body>
< / html>
使用此html文件。
Ok this is might be the dumbest question ever.. but i cannot for the life of me figure out how to add one of my Facebook apps to one of my Facebook pages. When I would look at my app settings on developers.facebook.com there used to be a link to view the App Profile Page. Then from there I could click an Add to Page link. But I have no clue how to do this now grrr.
解决方案
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Frederick Behrends" />
<title>Facebook PageTab Dialog Generator</title>
</head>
<body>
AppID:<input type="text" id="AppID" value=""/><br />
<input type="button" value="Add to page" onclick="AddToPage();"/>
<script>
function AddToPage(){
var Next,AppID;
AppID = document.getElementById('AppID').value;
if(isNaN(AppID) === true){
alert('AppID ungültig');
return false;
}
if(Next == '' || typeof Next == 'undefined')
Next = 'http://www.facebook.com/';
window.open("http://www.facebook.com/dialog/pagetab?app_id="+AppID+"&next="+Next,"PageTab","width=800,height=500");
return false;
}
</script>
</body>
</html>
Use this html file.
这篇关于如何添加一个应用程序到我的Facebook页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文