Get Posts from Facebook Page PHP [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I've done a lot of searching on the world wide web for this but I can't seem to find what I'm looking for. I want to be able to get all of the posts in order of upload from a specific Facebook page without needing a user to login. I would want all the data coming in a JSON format and using either PHP or if needed Javascript.
I know I don't have any code but I've spent many hours trying to get the answer behind this and asking here is my last resort really. Thanks for any help :)

What you are looking for is in the official Facebook docs, including example code: https://developers.facebook.com/docs/graph-api/reference/page/feed#read
It´s actually the first entry when you search for "get facebook page posts" with Google ;)
Without user login, you can only get posts of a Page if it´s not restricted by age or location. You can use an App Access Token for that.
More information about Tokens and how to generate them:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/

Related

Creating new php page from admin panel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I want to make a blog page using php. What I'm stuck with is how to create this page when I want to create a new post from the admin panel?
You will need to create a table of blog posts, and each record will be a stand-alone blog post that you display as a standalone page.
You then have a page, e.g. blog.php, which takes an id (or some form of reference to the blogpost you want to display), query the database for the given blog post and render the page.
I assume you have not posted any code / what you have tried because you have no idea how to get started, so I will also not give you any code, the description above should be enough for you to get started.
I see that you are a new user, so please in the future refrain from asking vague questions, without specific information as it is not allowed.

Facebook automatic Birthday wish [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i want to write a script which send automatically an friend birthday wishes. My base idea was to write a php script which called every day by a cronjob. All solution which i found was deprecated by facebook.
Actually my idea is to export my facebook calender and let a script run over the "export-list" that import the birthdays into a database. Then I have to call every day the javascript that popup a send-dialog if someone have birthday. But that is not comfortable.
Did somebody know a better solution?
You cannot get the friends' birthdays anymore, because all the friends_* permissions have been removed with v2.0 of the Graph API. Only if they are also users of the same app and give the app the permissions.

How to embed a Facebook page's reviews into my website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to figure out how to have the Facebook reviews listed for my company embedded into a page on my website. Here is the link for my Facebook reviews: https://www.facebook.com/jump2itpartyrentals/reviews?ref=page_internal. I thought that since this feed was available to the public, I could get around having to obtain a Token to access it, but I haven't had any luck with it.
Any help sure would be appreciated. Thanks!
Since there is no Social Plugin for this, and since scraping is not allowed on Facebook, you MUST use the Graph API for showing the Ratings/Reviews on your external Website. The docs offer everything you need to know, including some example code: https://developers.facebook.com/docs/graph-api/reference/v2.2/page/ratings
You have to use a Page Token. I suggest using an extended one, since it is valid forever. Here's more about Access Tokens, if you don't know how they work:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/
Scraping terms: https://www.facebook.com/apps/site_scraping_tos_terms.php
try taking a look at this page in facebook's developers section. it has a bunch of api's for you to use. https://developers.facebook.com/docs/plugins/comments This is a comments bar that will display all comments of your wanted url.

authenticating via facebook to update another database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am very new to web technologies. I don't even know what keywords to search with, so please bear with me.
I want to make a hybrid web app. The user visits the site and gets a login prompt to verify his/her identity via facebook.
When the use logs in correctly, they are allowed to query the database on my website. If the login fails, they cannot query my database.
I do not want any heavy duty SDKs or special purpose libraries. Is there a shortcut, lightweight implementation?
thank you for the help!
I see that you have tagged it as javascript, so i would suggest you t go through this official Facebook tutorial : https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2
Once the user is done with this, you just need to allow the user to query your database.
P.S. - For a more appropriate answer in regards to the later section, you need to put forward a more "to the point" question.

Types of output that will work for a callback [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am currently working on a small nodejs project that is responsible for returning search terms from a twitter feed. I have the search working however because I am new to this I am having problems displaying this on my webpage. The search information I want to display is being held by a callback from my function and I want to output this information. Keep in mind this information is ascertained after the webpage is loaded and I think that is why response.write(information); is not working for me. However if I do console.log(information); I do get the information I want but it's just not where I want it. Can someone help me out with outputting please.
I ended up solving this by using JSON.stringify(information);
You are right, it's very likely that once you have returned your webpage the response will be closed.
2 options:
1) you load your webpage first on 1 static route (using static middleware) and this web page then does an ajax call to a second route which returns your information.
2) you don't return your webpage until you have retrieved your information. I'm assuming your information will need to be displayed on this webpage which means you'll have to turn your webpage in a template and merge it with your information. You can use a Jade template or underscore template for example.

Categories

Resources