Web app posts only appear of company page when logged in - php

I am very quickly getting sick of facebook. Please please can someone explain to me why the following is happening.
I have an app which posts to the users feed.
We have set up a company page and this page has the app installed
The app settings are: This app may post on your behalf, including status updates, photos and more.
The app also has the following setting: Who can see posts this app makes for you on your Facebook timeline? EVERYONE
The php page posts to the company page
so why does the following happen (I am going insane!)
THE POSTS ONLY APPEAR WHEN I AM LOGGED INTO THE FACEBOOK ACCOUNT. When I visit the page as a normal user the post are not visible.
Now the point of having a company page and posting stuff to the page via the app is so that visitors can see it.
The app is installed. You can post updates to the page and the app permissions says that posts made by this app can be seen by everyone. Am i just be stupid or is the facebook API just a pile of crap???

Related

PHP Facebook SDK publish posts in Fan Page

I have created an account in Facebook Developers, and I've generated the token with long live (never expire). I've correctly published the post with my script PHP. The problem is that the only person who can read it is me. It isn't published in my Fan Page. It is neider published in my personal profile. It is in an intermediate point between my personal profile and my Fan Page.
The app created in Facebook Developers is active and published. I just want to publish my blog posts in my Fan Page.
The permissions configured in my Access Token are: manage_pages and publish_actions. I have in another platform and it works perfectly. Can you give me any suggestions? Thank you in advance.
Your app is not made public yet (check app dashboard, Status and Review tab, “Do you want to make this app and all its live features available to the general public?”) – as long as it is not set live, all content created through it will only be visible to you.
You always need to do this for each api key.

not visible posts on facebook pages wall posted in php, no error in result

I did automatic posting products from online shop to facebook page.
My client is owner/manager of the page. I was granted administrator rights to this page.
I have own one personal/developer fb account at the same time.
My own page is successfully updated by second fb application by the same script (config is different). The results are similar(running script targeted my page and my client's page) - no errors.
But my client's page is not showing those posts.
Both apps are live(not in sandbox mode).
(I can't login with client's credentials.) - but could it be the problem? do I have to be the creator of the page?

Facebook App Insights don't reflect changes at likes and comments

I'm trying to develop a Facebook App that works using Unity3D as front-end but using a PHP Web server to do the Facebook request saving the private key there.
I tested various things like uploading photos and comments an then it get reflected the new App Insigths of the App as Stories Published.
The thing I can't achieve is to see the Likes and Comments of those Stories, it remains 0.
¿There is something that I don't understand about the Likes/Comments there, or I'm doing something bad?
Thank you all.
P.D: Sorry about my English ^^'
Edit:
I can't provide example code of what i've done but I can explain it.
Actually my front-end do get requests to a backend PHP server that do the requests to Facebook.
When a user want to log in the server return the login url in a string and the front-end launches a Internet navigator (in my case is Google Chrome).
The callback url given to Facebook go to a site that closes automatically the navigator and putting in first plane my front-end.
From there you can do the request to the back-end to publish stories in Facebook and then log-out
Actually this is what my application do and it works. The only problem is that the comments and likes that those stories got are not reflected in the App Insights section.

Is it possible to display Facebook users timeline on website?

OBJECTIVE: I need to display latest 5 entries from users timeline on website, using PHP.
Please not that i speak about timeline of user profile - not fan page, not group.
SO FAR I DID THIS:
Registered as Facebook developer
Registered app
Obtained token
Opened url: https://graph.facebook.com/USER_ID/feed?access_token=MY_TOKEN
Voila. Feed of that user is displayed now, but..
PROBLEM: So now i have users feed, but it looks like its partially working.
It happens often that it don't displays some updates, sometimes it displays just date of the post and not the content.
However when i try to grab feed from some facebook fan page, then everything work normal.
MY QUESTION: Are we allowed to grab user timeline? If yes, what im doing wrong?
You won't ever see all the information that is visible inside the Facebook app via the api. This comes from how Facebook filters out the data. See this Facebook Developers blog post for more information: https://developers.facebook.com/blog/post/478/
Yes you are allowed to to grab user timeline posts, even with a limit, if your app asks for read_stream permission. Issue an HTTP GET request to the below URL:
https://graph.facebook.com/user_id/posts?access_token=token&limit=5

will users see post on their wall,if a post is made on app page

I would like to know, if a post is made by an app on a page which is associated with the app, then the posts published on that page will be shown on users wall or not, provided that users have allowed access to that app.
No, users of your applications who are not fans of associated page will not get posts published on that page appears on their wall (associated page it's still a page, nothing unusual here).
You can place Like Box social plugin in your application so your users will be able to like associated page and get subscribed on updates.

Categories