Method
Parameters
Facebook profile ID (numeric or username). Either
profileId or profileUrl is required, but not both.Full Facebook profile URL (e.g., “https://facebook.com/john.doe”). Either
profileId or profileUrl is required, but not both.Maximum number of photos to scan for tags. Must be between 1 and 50. Defaults to 10.
Optional array of Facebook account IDs to filter results. Only tags matching these IDs will be returned.
Optional array of Facebook account names to filter results. Only tags matching these names will be returned.
Usage
Basic Usage
With Filtering
Using Profile ID
Response
Returns aPhotoTagsFetchResponse object:
Response Fields
| Field | Type | Description |
|---|---|---|
profile | object | Metadata about the target profile |
profile.id | string | Facebook profile ID |
profile.url | string | URL to the Facebook profile |
profile.name | string | Name of the profile (if available) |
profile.pictureUrl | string | URL to profile picture (if available) |
tags | array | Array of tagged users found |
tags[].actorId | string | Facebook ID of the tagged person |
tags[].name | string | Name of the tagged person |
tags[].profileUrl | string | URL to the tagged person’s profile |
tags[].photoUrl | string | URL to the photo where the tag was found |
photosScanned | number | Total number of photos scanned |
Example Response
Error Handling
Notes
- The target profile owner is automatically excluded from the tags list
- Facebook Pages and hashtags are filtered out from results
- Results depend on the privacy settings of the target profile
- Private photos may not be accessible
- Maximum of 50 photos can be scanned per request
Related Methods
- Profile Interactions - Get likes and comments from posts
- Profile Search - Find profiles by name
- Check Facebook Friends - Verify friendship status