Facebook Open Graph Protocol - pages created for admin to manage - php

I have a website with like 50-60 dynamically generated pages, where I implemented the like button along with open graph protocol (ogp).
I want to manage this pages like a regular facebook page and post to my fans, for that I have specificed myself as page admin in the meta tags and liked my posts but I can't find this page in my manage pages section.
I tested my website by adding/removing different meta tags to make it working and tested it on facebook linter tool. Somehow I got two pages in the manage pages section but the remaining are not working.
You can view my website here:
http://freshlylike.com/view.php?id=404
Please help.
Thanks,
happyhardik

That's because in order to see those pages in you Manage Pages section, the admin listed in the open graph tag has to actually click the link - according to Facebook
Each listed user must click Like on
the URL to be approved as an admin.
This is to prevent users being made
admins without their consent.
I encountered the same problem too, so might have to work around that.

Related

Wordpress loads subpages without refreshing and adds subpage content under the content of a previous page

I'm creating a custom theme for a Wordpress website for my client.
As far as I held the theme on my localhost wordpress website, everything was fine - when let's say browsing the home page and clicking on the link, a specific subpage was loaded from start to finish - it was totally okay.
Now, on the client's website my theme works like this: When browsing the homepage and clicking on the link, instead of loading the page, Wordpress adds its content under the content of the homepage and it seems like its doing it without reloading. In order to see only the content of the subpage, I need to refresh the page.
Plugins installed:
Activity Log for MainWPAdvanced Custom Fields Alpine PhotoTile for
Google Plus and Picasa Block Bad Queries (BBQ) Contact Form 7 Display
Posts Duplicator Google Analytics for WordPress by MonsterInsights
MainWP Child Jetimpex Dashboard Plugin Security Scanner Really Simple
SSL Remember Me Controls Site Kit od Google Sucuri Security -
Auditing, Malware Scanner and Hardening UpdraftPlus WordPress
Importer
Explanatory image:
You can use Ajax, for example,
Home
about
contact
23 is the page id home, 24 for about and ...
then you create a javascript file and write a javascript code that when the user clicks the link, the ajax trigger and send data-id to backend.
So, create a function PHP in backend and get data with page id and return the content with wp_send_json...
below link helps you implement an ajax in WordPress:
How to call ajax in wordpress

Tie Wordpress Blog into single website login session so login required when blog selected in menu

I have found multiple postings with similar phrases but all too specific to their issue and not addressing this...
Most of the website requires a login session. I have built a custom plugin for WordPress to handle my CMS needs, etc. I have included a blog in the website. However, my issue is... How do I require login when "blog" is selected on the menu. AND I do NOT want to show WordPress anything. I want the blog to look like the rest of the site.
Basically I want to "nest" the blog in my website with one required login session. I have the menu item "blog" set as a category so as to pull the WordPress pre-built functionality. So this is the only item I am not able to php a login session as there really isn't a page to do so.
I have read several things. But finding them a bit confusing. Many say to change the wp-config.php but I am not comfortable with changing core files within WordPress. What am I missing or misunderstanding?
UPDATE:
Would changing the menu selection to a "page" instead of "category" and insert php file within that page with a redirect using header('Location:mysite.com/blog_files (of course after session verified) to redirect where WordPress has stored my blog? Is this a viable work-a-round?
You can use your wordpress as API point. Wordpress comes with REST API. So what you can do is get all posts after certain action. Then parse them in html.
There are 2 things to keep on mind.
1st is that everything on wordpress is post.
2nd is that to change certain parts of how api works you add filters to functions.php.
Hope I was helpful.
UPDATE
I have successfully "nested" my blog into my website so that login session is required. Changing the menu selection to a "page" instead of "category" and insert php file within that page with a redirect using header('Location:mysite.com/blog_files (of course after session verified) to redirect where WordPress has stored my blog files. This was quick and easy. However, it still requires WP login to participate in the blog. :(

In wordpress how to identify physical page?

I am new in wordpress but my senior gave me a project for code review but i could not find the phsical page by the url.
so i want know how to find a page which shows on url.
In admin side there are no. of pages so how to identify the page.

Create Custom PHP page for Wordpress that doesnt require a page in the DB

I have a multi-site setup and i want to add a global user profile page to all sites. Based on advice i was given i used a page template. I have created a file called myprofile.php and in here it does all the magic to create a page. The problem i have with this is that i must create a page within the WordPress admin panel that uses this template.
With multiple sites on the network I don't want the risk of someone deleting the page from the list or forgetting to add it etc and it causes a bunch of 404 errors, denying users basic functionality.
I want to be able to add a page to my entire WordPress install, including all multi-sites. It needs to be able to do everything that my page template does, but doesn't require a Page to exist in the page listing.
I tried doing this using a php file and using mod_rewrite, calling the WordPress header and footer and this worked, but its returning a 404 error even though the page content is displaying. I was able to manually set the header to 200 using php, but this isn't being picked up by all header scans that i have performed and its not a solution i am particularly happy with. I would like to build this into WordPress rather than making it separate and calling WordPress externally.
Can this be done?
Edit.
In needing a profile page i will also need a login, view other user profile page, change account settings and any other error/account related pages that come with a user profile, so having to create a dozen custom pages for every multi-site is going to be very annoying and messy.
I am also not using the WordPress user database for this as I use the user accounts for various other things outside of WordPress.

Website cached in Google with page category - Wordpress .

Our Website url structure is something like this :- www.example.com/website/xyz.htm
Our Website cached in Google something like this :- www.example.com/page/1 to www.example.com/page/32 but when i open this url, it's pointing me to the home page. We have used Wordpress CMS.
We have not created these things in our website. We do not understand, how it happened.
Thanks
Rob
I thought you might have used a plugin for getting WP SEF url for your WP pages to appear as HTML pages. Use some other latest , compatible and popular plugin to convert WP pages as HTML pages.
Google sometimes does not understand your site perfectly at all time due to the modification you done in your site.
So create an account in google analytics and verify it with your site then remove all listed pages and rebuild it once again by submitting new sitemap
Use Wordpress Yoast SEO Plugin. This will give you the functionality to remove the caching in Google Search.
After disabled the /page/option, you need to resubmit the sitemap xml in Google Search Console.

Categories