Facebook and Linkin?
-
How do i show my Facebook and Linkin profile on my blog?
The blog I need help with is: (visible only to logged in users)
-
You can enable sharing links at the bottom of your posts. See here
http://en.support.wordpress.com/sharing/You can Add Social Media Buttons to Your Sidebar or Footer
http://en.support.wordpress.com/add-social-media-buttons-to-your-sidebar-or-footer/You can also set up Publicize to autopost to your social networks every time you publish a a post. See here http://en.support.wordpress.com/publicize/
-
PHP
<?php$options = array (
‘http’ =>
array (
‘ignore_errors’ => true,
),
);$context = stream_context_create( $options );
$response = file_get_contents(
‘https://public-api.wordpress.com/rest/v1/sites/example.wordpress.com/media/?pretty=true’,
false,
$context
);
$response = json_decode( $response );?>
Response Body
{
“found”: 3,
“media”: [
{
“id”: “42”,
“date”: “2014-06-12T22:12:30+00:00”,
“parent”: 41,
“link”: “https://example.files.wordpress.com/2014/06/flower.gif”,
“title”: “flower”,
“caption”: “”,
“description”: “”,
“metadata”: {
“width”: 600,
“height”: 405,
“file”: “/home/wpcom/public_html/wp-content/blogs.dir/96d/2916284/files/2014/06/flower.gif”,
“sizes”: [],
“image_meta”: {
“aperture”: 0,
“credit”: “”,
“camera”: “”,
“caption”: “”,
“created_timestamp”: 0,
“copyright”: “”,
“focal_length”: 0,
“iso”: 0,
“shutter_speed”: 0,
“title”: “”
}
},
“meta”: {
“links”: {
“self”: “https://public-api.wordpress.com/rest/v1/sites/2916284/media/42”,
“help”: “https://public-api.wordpress.com/rest/v1/sites/2916284/media/42/help”,
“site”: “https://public-api.wordpress.com/rest/v1/sites/2916284”
}
}
},
{
“id”: “36”,
“date”: “2014-04-08T05:14:47+00:00”,
“parent”: 0,
“link”: “https://example.files.wordpress.com/2014/04/screen-shot-2014-04-08-at-1-14-39-am.png”,
“title”: “Screen Shot 2014-04-08 at 1.14.39 AM”,
“caption”: “”,
“description”: “”,
“metadata”: {
“width”: 1124,
“height”: 182,
“file”: “/home/wpcom/public_html/wp-content/blogs.dir/96d/2916284/files/2014/04/screen-shot-2014-04-08-at-1-14-39-am.png”,
“sizes”: [],
“image_meta”: {
“aperture”: 0,
“credit”: “”,
“camera”: “”,
“caption”: “”,
“created_timestamp”: 0,
“copyright”: “”,
“focal_length”: 0,
“iso”: 0,
“shutter_speed”: 0,
“title”: “”
}
},
“meta”: {
“links”: {
“self”: “https://public-api.wordpress.com/rest/v1/sites/2916284/media/36”,
“help”: “https://public-api.wordpress.com/rest/v1/sites/2916284/media/36/help”,
“site”: “https://public-api.wordpress.com/rest/v1/sites/2916284”
}
}
},
{
“id”: “31”,
“date”: “2014-04-07T18:42:10+00:00”,
“parent”: 32,
“link”: “https://example.files.wordpress.com/2014/04/leftovers1.gif”,
“title”: “leftovers”,
“caption”: “”,
“description”: “”,
“metadata”: {
“width”: 494,
“height”: 600,
“file”: “/home/wpcom/public_html/wp-content/blogs.dir/96d/2916284/files/2014/04/leftovers1.gif”,
“sizes”: [],
“image_meta”: {
“aperture”: 0,
“credit”: “”,
“camera”: “”,
“caption”: “”,
“created_timestamp”: 0,
“copyright”: “”,
“focal_length”: 0,
“iso”: 0,
“shutter_speed”: 0,
“title”: “”
}
},
“meta”: {
“links”: {
“self”: “https://public-api.wordpress.com/rest/v1/sites/2916284/media/31”,
“help”: “https://public-api.wordpress.com/rest/v1/sites/2916284/media/31/help”,
“site”: “https://public-api.wordpress.com/rest/v1/sites/2916284”
}
}
}
]
}
On this page:Resource URL
Method Parameters
Query Parameters
Response Parameters
ExampleAuthentication
Users
Sites
Posts
Comments
Taxonomy
Follow
Freshly Pressed
Notifications
Insights
Reader
Stats
Media
Return the media library
Return a single media item (by ID)
Edit basic information about a media item
Upload a new piece of media
Delete a piece of media
BatchResources
Documentation
Guidelines
Contact
- The topic ‘Facebook and Linkin?’ is closed to new replies.