This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="ja"> | |
<head> | |
<script src="http://connect.facebook.net/ja_JP/all.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="start_section"></div> | |
<div id="friend_section"></div> | |
<div id="fb-root"></div> | |
<script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<div id="hoge"></div> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
var user_id = 'zuck'; //facebook id | |
var url = 'https://graph.facebook.com/' + user_id + '?callback=?'; | |
var additional_html; | |
$.getJSON(url, function (res) { | |
for(var i in res) { | |
additional_html += i + ':' + res[i] + '<br>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/php | |
<?php | |
$url = 'http://rss.dailynews.yahoo.co.jp/fc/rss.xml'; | |
$rss = simplexml_load_file($url); | |
foreach ($rss->channel->item as $v) { | |
echo $v->title . "\n"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/php | |
<?php | |
$user_id = $argv[1]; | |
if ($user_id) { | |
$url = 'https://twitter.com/statuses/user_timeline.json?id=' . $user_id; | |
$tweet = file_get_contents($url); | |
$tweet = json_decode($tweet); | |
foreach($tweet as $v) { | |
echo $v->text . "\n"; |
NewerOlder