facebook:data leak troubles II
Posted: 2011/05/20 Filed under: Uncategorized Leave a comment »It’s still unclear about data leaks via facebook apps.
found a good tutorial movie at Email received from FB regarding authentication data.
Unfortunately my apps doesn’t use facebook connect. At forum, some says PHP SDK is doubtful. I will check it again…
facebook:How to support SSL for your GAE-based-FB apps
Posted: 2011/05/20 Filed under: Facebook Leave a comment »Recently, message below will show up when you use fb via https://facebook.com and try to use app which not support SSL.
Switch to regular connection (http)?
Sorry! We can’t display this content while you’re viewing Facebook over a secure connection (https).
Would you like to temporarily switch to a regular connection (http) to use this app?
You will have a secure connection upon your next login.
So facebook app developers must use SSL. When you develop apps with Google App Engine, you need to add “secure:optional” to your handlers. “Optional” supports both http and https. It switches protocol automatically. My apps which were made with Google App Engine work fine.
handlers:
- url: /youraccount/.*
script: facebookapp.py
secure: optional
facebook:your apps are needed to fix some data leaks?
Posted: 2011/05/19 Filed under: Facebook Leave a comment »When you got email from facebook about “you app to fix date leaks”,these links are useful. Yes. I got the email, but I haven’t find any data leaks on my app….
blog:
Facebook Tells Some Developers They Have 48 Hours to Fix Authentication Data Leaks
forum:
Email received from FB regarding authentication data
related?:
Facebook Applications Accidentally Leaking Access to Third Parties – Updated
tools:
Slavi’s Free Tools:to create/delete facebook test users online
Charles:to check data transfer
Fiddler:to check data transfer
Growing Web Services & Websites 20
Posted: 2011/05/10 Filed under: Uncategorized Leave a comment »apple.com(37)
Tumblr(50)
GoDaddy(61)
StackOverflow(120)
Etsy(212)
Hootsuite(268)
Quora(816)
Naver.jp(956)
Ping.fm(1118)
Reverbnation(2067)
StackExchange(2203)
About.me(2887)
Kickstarter(2907)
Amplify.com(3263)
ColourLovers(3977)
Ceron.jp(4506)
Appdata(10613)
Scoop.it(14441)
IndieGoGo(14956)
Canv.as(26028)
Bug about Oath2.0 of facebook
Posted: 2011/04/15 Filed under: Facebook Leave a comment »After the previous blog post, i noticed an e-mail which was sent by Lifestreet.com(ad network for fb). It is about bugs of oath2.0. Read below if you are interested in fb bugs.
http://bugs.developers.facebook.net/show_bug.cgi?id=15933
Your old facebook apps run correctly? Check your app’s property!
Posted: 2011/04/15 Filed under: Facebook 1 Comment »Today I found some of my facebook apps hadn’t been working. When I logged in the app, it started reloading again and again and again and …… It seemed to fail to log in.
I checked programs and finally found out what caused the trouble.
At facebook app’s property, “OAuth 2.0 for Canvas” was disabled. After I changed “OAuth 2.0 for Canvas” to “enabled”, apps run correctly.
Recently “OAuth 2.0 for Canvas” is “enabled” when you set up new facebook apps. But if you made FB apps a year ago, it may be good to check your apps’ property.
How to publish feeds to facebook when you have cert error.
Posted: 2011/03/15 Filed under: Facebook, PHP Leave a comment »When i tried to publish feeds via my php program, I got error which says that “something is wrong, please try again later.CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed”
Here’s a solution. I found this at comments of Graph API & IFrame Base Facebook Application Development.
Adding two lines below to facebook.php will prevent you from certificate problem.
$opts[CURLOPT_SSL_VERIFYHOST] = 0;
$opts[CURLOPT_SSL_VERIFYPEER] = 0;
Therefore makeRequest of facebook.php will be like below.
protected function makeRequest($url, $params, $ch=null) {
if (!$ch) {
$ch = curl_init();
}$opts = self::$CURL_OPTS;
$opts[CURLOPT_POSTFIELDS] = $params;
$opts[CURLOPT_URL] = $url;
$opts[CURLOPT_SSL_VERIFYHOST] = 0;
$opts[CURLOPT_SSL_VERIFYPEER] = 0;
curl_setopt_array($ch, $opts);
$result = curl_exec($ch);
if ($result === false) {
$e = new FacebookApiException(array(
‘error_code’ => curl_errno($ch),
‘error’ => array(
‘message’ => curl_error($ch),
‘type’ => ‘CurlException’,
),
));
curl_close($ch);
throw $e;
}
curl_close($ch);
return $result;
}
“Unfriend” must be threat to facebook.
Posted: 2011/03/10 Filed under: Facebook Leave a comment »Recently i got notice from Facebook Platform Policy Team. It says that my facebook app – “Unfriend Manger” has been disabled for violations.
I won’t accept their explanations. Unfrined manager actually has no function to unfriend.
But I guess a word “unfriend” must be threat to facebook. The more people get unfriend, the more pageviews facebook lose.
How to resize your PHP based facebook apps.
Posted: 2011/03/08 Filed under: Facebook, PHP Leave a comment »I couldn’t find any good solutions to resize facebook apps with PHP SDK.
So I tryed using Javascript to resize. Then…it works!
At first, add reading facebook JS to your html.
<script src=”http://connect.facebook.net/en_US/all.js”></script>
Then add javascript to your html.
<div id=”fb-root”></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: ‘{{ FB_APPID }}’, status: true, cookie: true,xfbml: true});
FB.Canvas.setAutoResize();
};
(function() {
var e = document.createElement(‘script’);
e.type = ‘text/javascript’;
e.src = document.location.protocol + ‘//connect.facebook.net/en_US/all.js’;
e.async = true;
document.getElementById(‘fb-root’).appendChild(e);
}());
</script>
(*put your appid to {{ FB_APPID }}. I’d wrote PHP program to login onto fb.)
I dont guarantee this works on your apps. But if you have no idea how to resize, it may be good to try. (Don’t forget set your app to IFRAME and Auto-resize)
How to tag your friends with Graph API
Posted: 2011/03/03 Filed under: Facebook, PHP 3 Comments »I hadn’t known about how to tag your friends with Graph API. Recently, I found an article about it. Then tryed and was sure it works.
Quote from my PHP source is below.
$facebook->setFileUploadSupport(true);
$tags = array(
‘tag_text’ => ‘ak Yip’,
‘tag_uid’ => 642536423,//it’s my id on facebook as a sample
‘x’ => 10,
‘y’ => 10,
);$args['tags'] = array($tags);
$args['image'] = ‘@’ . realpath($fn);
$data = $facebook->api(‘/me/photos’, ‘post’, $args);
Two important things.
One:Your app need to get permissions like ‘user_photo_video_tags’ and ‘friends_photo_video_tags’.
Two:X,Y is proportion, not coordinate. Don’t put value over 100.





















