Integrating Feed, Like, Comment, Share Service
What is Feed ?
In phpFox, a feed item is a story about an actor perform performs an action in which members can like, comment, share, ...
...
We do not insert the value directly in to database, almost case, developer using Feed service to handle insert process.
...
!../images/https://docs.phpfox.com/download/attachments/851993/todolist-feed.png?api=v2!
As you see, the feed headline is concat from the actor and and a phrase "post_new_to_do",
add this phrase to phrase.json then re-validate app. The final result will be.
Later, you can be able to change the layout of your feed.
...
Continue with Callback Service, update code
...
Continue edit Callback service, add following empty method
Code Block | ||||
---|---|---|---|---|
| ||||
// share service required callback method
public function canShareItemOnFeed(){
}
|
Visit Home page again, click on share button on to do list item, put some line then submit, the result
if you want to modify you feed layout, visit below chapter: