Friday, July 30, 2010

How to have a javascript callback executed after an update panel postback?

http://stackoverflow.com/questions/1152946/how-to-have-a-javascript-callback-executed-after-an-update-panel-postback

Monday, July 26, 2010

Get number of likes of page

Call this to get those counts for the above link:

https://api.facebook.com/method/fql.query?query=select total_count,like_count,comment_count,share_count,click_count from link_stat where url=&format=json

Ref:

http://developers.facebook.com/docs/reference/fql/link_stat

http://forum.developers.facebook.com/viewtopic.php?id=57636

http://forum.developers.facebook.com/viewtopic.php?id=64105

http://www.halgatewood.com/get-number-of-facebook-likes-for-a-url/

Tuesday, July 20, 2010

sql 2000 problem

Warning: The table 'xxx' has been created but its maximum row size (8707) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE of a row in this table will fail if the resulting row length exceeds 8060 bytes.

Monday, July 19, 2010

Facebook get permission link

http://tech.karolzielinski.com/publish-post-of-facebook-page-wall-as-a-page-not-a-user-python-facebook-rest-api

http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications

http://forum.developers.facebook.com/viewtopic.php?pid=247712

http://www.facebook.com/connect/uiserver.php?app_id=&next=http%3A%2F%2Fapps.facebook.com%2test%2Fpageadmin.php&display=page&cancel_url=http%3A%2F%2Fapps.facebook.com%2Ftest%2F&locale=en_US&perms=manage_pages,offline_access&return_session=1&session_version=3&fbconnect=0&canvas=1&legacy_return=1&method=permissions.request

FB.api("/me/accounts")

Tuesday, July 6, 2010

Facebook Development FAQ

1. Can I send messages to users through Graph API?
No. (2010-07-06)

2. Can I send messages to fan page fans?
Yes, through the fan page admin panel.(2010-07-06)

3. Can I open the post to wall popup in fan page tab?
Yes, through the old Facebook.streamPublish function. New Fb.ui cannot. (2010-07-06)

4. Width of multi-friend-selector cannot be changed?
Use width="700" instead of style="width:700px"

5. Encounter Error:
" Fatal error: Uncaught CurlException: 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed thrown in /Users/wesbos/Dropbox/OrangeRhinoMedia/reporting/src/facebook.php on line 512"

Solution:
http://forum.developers.facebook.com/viewtopic.php?pid=225380

6. Get Insights from a Page, not an App
http://forum.developers.facebook.net/viewtopic.php?id=58146

7. FQL Like statement
WHERE strpos(message,'the') >= 0
http://forum.developers.facebook.net/viewtopic.php?id=30775

List of posts:
IE8 XSS
http://wiki.developers.facebook.com/index.php/Talk:Fb:request-form#IE8_Final_.28iframe.29
http://forum.developers.facebook.com/viewtopic.php?id=32954

I can't get the new Javascript SDK to work with IE8
http://forum.developers.facebook.com/viewtopic.php?id=61389

Graph API - Post Photo to fan page
http://forum.developers.facebook.com/viewtopic.php?id=59063

Uploading photos to fan page album
http://forum.developers.facebook.com/viewtopic.php?pid=246096

Get Filename from Url

string strPageName = System.IO.Path.GetFileName(Request.Path);

Ref:
http://bytes.com/topic/asp-net/answers/317977-extract-filename-url