SocialMediaData

SocialMediaData["name"]
gives information about the social media entity .

SocialMediaData["name", "property"]
gives the value of the specified property for the social media entity .

SocialMediaData[{"name", id}, "property"]
gives the value of a property for the specified identifier id.

DetailsDetails

  • Social media entities can be specified by standard names such as and .
  • SocialMediaData[] gives a list of all available social medias.
  • SocialMediaData["name", "Properties"] gives a list of properties available for the social media .
  • Facebook-related properties include:
  • "Friends"list of friends
    "FriendIDs"list of friend IDs
    "UserData"user data
    "Posts"post data
    "Feeds"feed data
  • Facebook user-related networks, with vertices corresponding to users, include:
  • "FriendNetwork" is connected to user if and are friends
    "LikeCommentNetwork" is connected to if and like or comment on the same post
    "LikeNetwork" is connected to if and like the same post
    "CommentNetwork" is connected to if and comment on the same post
  • Facebook post-related networks, with vertices corresponding to posts, include:
  • "PostLikeCommentNetwork"a user likes or commented on both posts and
    "PostLikeNetwork"a user likes both posts and
    "PostCommentNetwork"a user commented on both posts and
  • Facebook bimodal-related networks include:
  • "BimodalLikeCommentNetwork"network with users connected to their likes and comments
    "BimodalLikeNetwork"user-like network with users connected to their likes
    "BimodalCommentNetwork"user-comment network with user connected to their comments
  • Twitter-related properties include:
  • "Followers"list of followers
    "FollowerIDs"list of follower IDs
    "Friends"list of friends
    "FriendIDs"list of friend IDs
    "UserData"user data
  • Twitter follower-related networks, with vertices corresponding to followers, include:
  • "FollowerNetwork"user is connected to user if is a follower of
    "FollowerReplyToNetwork"user is connected to user if replies to
    "FollowerMentionNetwork"user is connected to user if mentions
  • Twitter friend-related networks, with vertices corresponding to friends, include:
  • "FriendNetwork"user is connected to user if is a friend of
    "FriendReplyToNetwork"user is connected to user if replies to
    "FriendMentionNetwork"user is connected to user if mentions
  • Search topic-related networks, with vertices corresponding to users of tweets that match a query, include:
  • "SearchNetwork"user is connected to if is a follower of
    "SearchReplyToNetwork"user is connected to user if replies to
    "SearchMentionNetwork"user is connected to user if mentions
  • SocialMediaData["name", "property", "ann"] gives various annotations associated with a property. Typical annotations include:
  • "Description"textual description of the property
    "Information"hyperlink to additional information
    "Data"raw data
    "FormattedData"formatted data
  • SocialMediaData provides gateways to external social media data sites. Its uses are subject to any restrictions associated with those sites, and may require additional licensing.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

List of friends on Facebook:

In[1]:=
Click for copyable input
Out[1]//Short=

Facebook friend network:

In[2]:=
Click for copyable input
Out[2]=

List of followers on Twitter:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input

Twitter follower network:

In[3]:=
Click for copyable input
Out[3]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »