有人知道如何制作一个 API 将我的页面结果发布到 Facebook 吗?
或者任何社交网站?
我会将代码发布到我的网站,供任何人查看。基本上它是一个允许用户进行调查的网站,然后根据这些结果,我们推荐校园内最合适的宿舍。我们需要一个 API 将这些结果发布到 Facebook。这是我的网站代码。
<!DOCTYPE html>
<html>
<head>
<title> Find the right dorm for you </title>
<h1>Find out what dorm fits your lifestyle!</h1>
</head>
<body>
<p>Please fill out a few questions so we can
help you figure out which dorm is best for you.</p>
<form method="get" action="final.php">
I enjoy (check all that apply):<br>
<input type="checkbox" name="acts" value="8">Working Out<br>
<input type="checkbox" name="acts" value="3">Bowling<br>
<input type="checkbox" name="acts" value="3">Live Music<br>
<input type="checkbox" name="acts" value="5">Shopping<br>
<input type="checkbox" name="acts" value="7">Food<br>
<input type="checkbox" name="acts" value="9">Bars <br>
<input type="checkbox" name="acts" value="9">Frat Parties <br>
<input type="checkbox" name="acts" value="8">Sports <br>
<input type="checkbox" name="acts" value="3">Library <br>
Is being close to the quad important to you?:
<select name= "Quad">
<option value="1">Not important</option>
<option value="3">Kind of important</option>
<option value="6">Very Important</option>
<option value="3">Only thing that matters</option>
</select>
<br>
How often do you plan on going to Red Lion?:
<select name= "Lion">
<option value="1">Never</option>
<option value="5">Sometimes</option>
<option value="10">Over 3 times a week</option>
</select>
<br>
Would you rather go to the ARC or CRCE?:
<select name= "Gym">
<option value="10">Arc</option>
<option value="1">CRCE</option>
</select>
<br>
How do you plan on eating most of your meals?:
<select name= "Meals">
<option value="5">Ordering delivery</option>
<option value="8">Walking To Green St.</option>
<option value="5">Making my own food</option>
</select>
<br>
Private or Public dorm?:
<select name= "Dorm">
<option value="10">Private</option>
<option value="5">Public</option>
</select>
<br>
<input type="submit" value="get my results!">
</form>
</body>
</html>