Uploaded image for project: 'Spring Social Facebook'
  1. Spring Social Facebook
  2. SOCIALFB-152

Add search to PageOperations

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.RC1
    • Component/s: API Binding
    • Labels:
      None

      Description

      Many of the templates support search, however there does not appear to be any API exposed to search with type=page.

      Looks like we just need the following method added to PageTemplate and it's interface PageOperations (code taken from PlacesTemplate.search() and modified).

      	public PagedList<Page> search(String query) {
      		requireAuthorization();
      		MultiValueMap<String, String> queryMap = new LinkedMultiValueMap<String, String>();
      		queryMap.add("q", query);
      		queryMap.add("type", "page");
      		return graphApi.fetchConnections("search", null, Page.class, queryMap);
      	}
      

      The Page object will not be fully populated, however you have the same problem with the Page object returned by PlacesTemplate.search() currently.

        Attachments

          Activity

            People

            Assignee:
            habuma Craig Walls
            Reporter:
            mbyrne00 Matt Byrne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: