예제 #1
0
def link_stat_for_urls(urls, app_id, app_secret):
    link_urls = ",".join(['"%s"' % x for x in urls])
    link_query = 'SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url in(%s)' % link_urls
    access_token = get_app_access_token(app_id, app_secret)
    return fql_query(query=link_query, access_token=access_token, format='json')
예제 #2
0
def link_stat(url, app_id, app_secret):
    link_query = 'SELECT share_count, like_count, comment_count, total_count FROM link_stat WHERE url="%s"' % url
    access_token = get_app_access_token(app_id, app_secret)
    return fql_query(query=link_query, access_token=access_token, format='json')