This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps how to create never expiring token for posting to FB page | |
--------------------------------------------------------------- | |
1.) Go to https://developers.facebook.com/tools/explorer/ | |
2.) Select you application from dropdown | |
3.) Click GET USER ACCESS TOKEN | |
4.) Select MANAGE PAGES permission | |
5.) Call GET on /me/accounts | |
6.) Find PAGE where you want to post | |
7.) COPY access token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// CUSTOM FIELDS IN CATEGORY - BLOG | |
/////////////////////////////////// | |
// retrieve values like this: | |
// ------------------------- | |
// $category_extra_fields = get_option('category_extra_fields'); | |
// $section_subtitle = $category_extra_fields[$category->term_id]['section_subtitle'][0]; | |
define('MY_BLOG_CATEGORY_FIELDS', 'category_extra_fields'); |