SocialMediaData

As of Version 12.3, SocialMediaData is no longer actively supported due to changes in underlying data availability. ServiceConnect provides related functionality.

SocialMediaData["name"]

gives information about the social media entity "name".

SocialMediaData["name","property"]

gives the value of the specified property for the social media entity "name".

SocialMediaData[{"name",id},"property"]

gives the value of a property for the specified identifier id.

Details

  • Social media entities can be specified by standard names such as "Facebook" and "Twitter".
  • SocialMediaData[] gives a list of all available social media sites including "Facebook", "Instagram", "Twitter", and "LinkedIn".
  • SocialMediaData["name","Properties"] gives a list of properties available for the social media "name".
  • 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 comments on both posts and
    "PostLikeNetwork"a user likes both posts and
    "PostCommentNetwork"a user comments 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.

Examples

open allclose all

Basic Examples  (2)

List of friends on Facebook:

Facebook friend network:

List of followers on Twitter:

Twitter follower network:

Scope  (72)

Facebook  (33)

Basic  (8)

Hyperlink to "Facebook":

Get a list of possible properties:

Get a list of friends:

Get feed data:

Feed data of a user:

Feed data of a page:

Get the textual description of a property:

Additional information:

Get the user-post network linked by likes or comments:

User-post network of a user:

Get the user-post network linked by likes:

User-post network of a specified user:

Get the user-post network linked by comments:

User-post network of a user:

Users  (7)

Get a list of friends:

Friend IDs:

Get user data:

User data of a user:

Get a profile picture:

Profile picture of a user:

Get the friend network:

Get the user network linked by commenting on or liking the same post:

User like-comment network of a user:

Get the user network linked by liking the same post:

User-like network of a user:

Get the user network linked by commenting on the same post:

User-comment network of a user:

Page  (4)

Get a profile picture of a page:

Page ID:

Category:

Link:

Location:

Phone:

Website:

Get user data:

The number of likes:

The number of people talking about a page:

Posts  (4)

Get post data:

Post data of a user:

Post data of a page:

Get the post network linked by sharing likers or commenters:

Post the like-comment network of a user:

Get the post network linked by sharing likers:

Post the like network of a user:

Get the post network linked by sharing commenters:

Post the comment network of a user:

Analysis  (10)

Show the recent history of a user's activities:

Formatted data:

Show the recent user's activities:

Formatted data:

Show the weekly distribution of the user's activities:

Formatted data:

Show wall post statistics:

Formatted data:

Show wall posts' character lengths by months:

Formatted data:

Show word frequencies:

Show the most-liked posts:

Formatted data:

Show the most-commented posts:

Formatted data:

Show the top commenters:

Show the weekly application activities:

Formatted data:

Instagram  (17)

Basic  (6)

Hyperlink to "Instagram":

Get a list of possible properties:

Get a list of followers:

Get the textual description of a property:

Additional information:

Get a list of the most popular media at the moment:

Media IDs:

Get a list of the most recent media of the user:

Media IDs:

User  (5)

Get a list of followers:

List of follower IDs:

List of followers of a user:

Get a list of followings:

List of following IDs:

List of followings of a user:

Get user data:

User data of a user:

Get a list of published media:

List of media IDs:

Get a list of published media of a user:

Get a list of media the user liked:

List of media IDs:

Media  (6)

Get media image:

Get media type:

Media ID:

Link:

Location:

Creation date:

Get media standard-resolution image:

Low-resolution image:

Thumbnail:

Get media owner:

Owner ID:

Get media comments:

Get media likes:

Like IDs:

The number of likes:

Twitter  (15)

Basic  (4)

Hyperlink to "Twitter":

Get a list of possible properties:

Get a list of friends:

List of friends of a user:

Get the textual description of a property:

Additional information:

Followers  (4)

Get a list of followers:

List of follower IDs:

List of followers of a user:

Get the follower network:

Follower network of a user:

Get the network of followers linked by reply-to relationship:

Reply-to network of a user:

Get the network of followers linked by their mentions relationship:

Mention network of a user:

Friends  (4)

Get a list of friends:

List of friend IDs:

List of friends of a user:

Get the friend network:

Friend network of a user:

Get the network of friends linked by replies-to relationship:

Replies-to network of a user:

Get the network of friends linked by their mentions relationship:

Mention network of a user:

Search  (3)

Get the network of search based on follower relationship:

Get the network of search based on reply-to relationship:

Get the network of search based on mention relationship:

LinkedIn  (7)

Basic  (4)

Hyperlink to "LinkedIn":

Get a list of possible properties:

Get a list of connections:

Get more information about a property:

Connections  (2)

Get a list of connections:

Connections IDs:

Obtain the ego connection network:

Search  (1)

Search people:

Applications  (7)

Facebook  (4)

Visualize communities in a Facebook friend network:

Find connectors: highly popular people in a Facebook friend network:

Rank friends based on popularity. Highest-ranked friends have the most connections:

Top five connectors:

Find isolates in a Facebook friend network:

Isolates have no more than one connection:

Show isolates:

Find brokers in a Facebook friend network:

Brokers are on many shortest paths connecting other friends in the network:

Top two brokers:

Twitter  (3)

Visualize communities in a Twitter follower network:

Find influencers in a Twitter follower network:

Influencers are closely connected to other followers in the network:

Top five influencers:

Find brokers in a Twitter friend network:

Brokers are on many shortest paths connecting other friends in the network:

Top two brokers:

Possible Issues  (2)

Use ClearSystemCache to clear caches of results and to force re-authentication:

SocialMediaData is subject to restrictions associated with external social media sites:

The "Friends" property for "Facebook" gives only friends who also use SocialMediaData:

Wolfram Research (2012), SocialMediaData, Wolfram Language function, https://reference.wolfram.com/language/ref/SocialMediaData.html.

Text

Wolfram Research (2012), SocialMediaData, Wolfram Language function, https://reference.wolfram.com/language/ref/SocialMediaData.html.

CMS

Wolfram Language. 2012. "SocialMediaData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SocialMediaData.html.

APA

Wolfram Language. (2012). SocialMediaData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SocialMediaData.html

BibTeX

@misc{reference.wolfram_2024_socialmediadata, author="Wolfram Research", title="{SocialMediaData}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/SocialMediaData.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_socialmediadata, organization={Wolfram Research}, title={SocialMediaData}, year={2012}, url={https://reference.wolfram.com/language/ref/SocialMediaData.html}, note=[Accessed: 30-December-2024 ]}