Patent ID: 11954170
Assignee: META PLATFORMS, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A computer program product comprising a non-transitory computer-readable storage medium containing computer program code for:
receiving, from a content provider, a target content item and a policy for the target content item specifying a prohibited classification of content that cannot be published adjacent to the target content item;
generating, for a viewing user of an online system, a content feed comprising a plurality of content items;
identifying a slot in the content feed, the slot between two adjacent content items of the plurality of content items in the content feed;
accessing a machine learning model trained to classify whether a content item is the prohibited classification, wherein the machine learning model is trained based on a set of training examples that comprise features about a plurality of other content items and labels for each of the other content items of whether the other content item is the prohibited classification;
applying the trained machine learning model to each of the adjacent content items to determine whether each of the adjacent content items is the prohibited classification;
determining whether to place the target content item in the slot based on whether either of the adjacent content items is the prohibited classification;
selectively placing the target content item in the slot or in another location of the content feed based on the determining, and
sending the content feed including the target content item for display to the viewing user.